search for: sweaveinput

Displaying 20 results from an estimated 22 matches for "sweaveinput".

2007 Apr 26
2
SweaveInput and absolute paths
Hi, Is there a way to turn off the automatic inclusion of "./" at the beginning of a path specified in an \SweaveInput{} instruction? I'd like to create some reusable "template modules" of Sweave code and put them in a standard directory like /Resources/Affymetrix Then the corresponding file that uses one of these would include a command like \SweaveInput{/Resources/Affymetrix/libload.Rnw} If I...
2012 Sep 20
2
Sweave - if \Sexpr{} than \SweaveInput{"my.Rnw"}
Depending on an R computation I would like to include an Sweave documents in the main Sweave document. How can I do it? So I was thinking .... to use Latex features : \newif\ifpaper \ifpaper \SweaveInput{"my1.Rnw"} \else \SweaveInput{"my2.Rnw"} \fi But how do I set paper to true or false given an \Sexpr ?? \papertrue % or \paperfalse Any ideas? cheers -- Witold Eryk Wolski Triemlistrasse 155 8047 Zuerich [[alternative HTML version deleted]]
2010 Oct 05
3
SweaveInput + keep.source = TRUE trouble
Dear all, I have trouble with R-beta sweaving files that include definitions with \SweaveInput in combination with keep.source = TRUE Symptom: SInput is taken from too far down the input file (the shift is the number of lines of the included file). Is that known? Searching didn't turn up anything, yet I think there are more people than just me using keep.source. Example: $ ~/tmp/R-bet...
2011 Oct 29
1
Sweave absolute path versus relative path
...o my tex document > (using \input). The journal I plan on submitting to eventually wants the > final .tex file so I thought it would be a good idea to use Sweave, it makes > a tex doc with my tables generated and it should be all good. > > I just spend a few hours trying to get the \SweaveInput commant to work > properly. I finally determined that I couldn't put the file in as an > absolute path but it had to be a relative path. I.e > > \SweaveInput{/home/tdavies/Dropbox/CollapseRecovery_Shared/trevor/afterAFS/writing/sweave/blah.tex} > gave the error: > > R CMD...
2013 Jan 09
3
Sweave, Texshop, and sync with included Rnw file
...f R code, hence the need to use Sweave. I was able to compile Rnw files, and to sync back and forth from the pdf to the source Rnw. My problem now is that the book is divided in Chapters, and every chapter is in its own Rnw file. I can compile them from the main one (book.Rnw) using the directive \SweaveInput{chapter1.Rnw} The problem stands in the fact that like this I am missing synchronization between the pdf and the source Rnw. If part of text is in book.Rnw I can synchronize, but if the text is in one of the included files, it just doesn't work. I am using the sweave engine found in the follow...
2005 May 17
1
Sweave and paths
Is there some way to encourage \SweaveInput{foo} to find foo in a subdirectory of a file tree? Something along the lines of the behavior of list.files(<stuff>, recursive=TRUE). This would be very helpful at calling small modular files, such as solution sets and the like. I couldn't see anything in the documentation, and I...
2009 May 10
2
Vignettes with missing or empty \VignetteIndexEntry:
...uot; See the information on INDEX files and package subdirectories in the chapter 'Creating R packages' of the 'Writing R Extensions' manual. The warning tells me \VignetteIndexEntry is missing however there is one in probdistr-main.Rnw (Sweave file calling all other files via \SweaveInput{probdistr-XXXXX}). Let us note this file is not listed in the above files... But the build is ok * checking for file 'pkg/DESCRIPTION' ... OK * preparing 'pkg': * checking DESCRIPTION meta-information ... OK * installing the package to re-build vignettes * Installing *source* pa...
2012 Jan 16
3
Using Sweave to generate multiple documents
Hello, I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction. I am using Sweave and would like to have a single .Rnw document that generates 1) a summary report, 2) a full report, 3) slides for a talk. I think my material lends itself to have
2005 Feb 23
4
Sweave and \input or \include LaTeX commands
Hello! I was just wondering if Sweave can work with \input or \include LaTeX commands. So, is it aware of such a possible hierarchy in documents. I would test that, but I don't have such a report available at the moment. I thought of that when I was writting shell script for Sweave from command line and I have solved that part there. -- Lep pozdrav / With regards, Gregor GORJANC
2005 May 18
0
SV: Sweave and paths
...l R-program which replaced foo with foo\bar in the Sweave file. Clumpsy, sure, but... Best S??ren ________________________________ Fra: r-help-bounces at stat.math.ethz.ch p?? vegne af Bill Rising Sendt: ti 17-05-2005 20:31 Til: rhelp Emne: [R] Sweave and paths Is there some way to encourage \SweaveInput{foo} to find foo in a subdirectory of a file tree? Something along the lines of the behavior of list.files(<stuff>, recursive=TRUE). This would be very helpful at calling small modular files, such as solution sets and the like. I couldn't see anything in the documentation, and I look...
2008 Jul 02
0
Sweave / Latex per-chapter output
...ved on the list although Pan gave me no error message at all! So, let me try again using the good old email-to-email way. You all helped me so much! This is what I'm doing now: - I separated my large file into several chapter files - In each file, I include a Sweave options file using "\SweaveInput" - I make sure to first run a "pre" file, which checks if some files containing data from the database that I need repeatedly are there or not, and if they are not too old. If the files are absent or expired, the database is queried and the files recreated. - In each file, I then &qu...
2012 Apr 26
1
Sweave: Avoiding recompilation of figures
Hello everybody out there using Sweave, There are some complicated SQL queries and laborous calculations against large data included as R code chunks using Sweave in my LaTeX document. These code chunks create graphs that do not change most of the time, but they are of course recompiled every time I run Sweave on my file for update of minor changes to the LaTeX text. Is there an option
2014 Nov 03
0
Pkg creation: Sweave: multiple files vignette: Error in R CMD check
...status 1. ### So, it seems like that it is tried to make a tex-file from my child-Rnw-file called "ChapterY.Rnw", what of couse is not possible, because that file contains no praeambel. As a workaround I tried to put my child-Rnw-file in a subfolder (ChapterY) and calling this file by \SweaveInput{ChapterY/ChapterY.Rnw}. Again, "Complie pdf" as well as Sweave("Master.Rnw") works fine, but with checking the package I get the following error: Error in SweaveReadFile(c(ifile, file), syntax, encoding = encoding) : no Sweave file with name ?./ChapterY/ChapterY.Rnw? found ER...
2010 Dec 21
1
Bug report 14459 -- procedure for handling follow-up issues
Although the specific behaviour that was reported has been fixed, bugs remain in Sweave's processing of comment lines when keep.source=TRUE This is in some senses a follow-up from earlier bugs. Hence the query -- what is the preferred procedure, to submit a new bug report? (Another option might be to add a comment to the web page for bug 14459.) Is there now a preference to submit via
2010 Dec 16
0
R 2.12.1 is released
...s from a length-zero argument. (PR#14424) ? When list2env() created an environment it was missing a PROTECT call and so was vulnerable to garbage collection. ? Sweave() with keep.source=TRUE dropped comments at the start and end of code chunks. It could also fail when \SweaveInput was combined with named chunks. ? The Fortran code used by nls(algorithm = "port") could infinite-loop when compiled with high optimization on a modern version of gcc, and SAFE_FFLAGS is now used to make this less likely. (PR#14427, seen with 32-bit Windows u...
2010 Dec 16
0
R 2.12.1 is released
...s from a length-zero argument. (PR#14424) ? When list2env() created an environment it was missing a PROTECT call and so was vulnerable to garbage collection. ? Sweave() with keep.source=TRUE dropped comments at the start and end of code chunks. It could also fail when \SweaveInput was combined with named chunks. ? The Fortran code used by nls(algorithm = "port") could infinite-loop when compiled with high optimization on a modern version of gcc, and SAFE_FFLAGS is now used to make this less likely. (PR#14427, seen with 32-bit Windows u...
2006 Oct 14
2
Sweave, R and complex latex projects
Hello all, I've been able to use R very successfully to run simple statistics and generate the plots I require. I've been evaluating Sweave, and have hit upon a small problem that I don't seem to be able to workaround. Sweave runs very well for single file latex documents, but I have a complex thesis made up of several parts and chapters. These are arranged with a master latex file
2008 Jun 13
4
Sweave: looping over mixed R/LaTeX code
Dear guRus, I would like to loop over a medium amount of Sweave code, including both R and LaTeX chunks. Is there any way to do so? As an illustration, can I create a .tex file like this using a loop within a .Rnw file, where the "1,2,3" comes from some iteration variable in R? ################################################ \documentclass{article} \usepackage{Sweave} \begin{document}
2011 Oct 31
0
R 2.14.0 is released
...es for a non-generic version of a function if called from a package with a namespace. (It always did for packages without a namespace.) o Setting the environment variable _R_WARN_ON_LOCKED_BINDINGS_ will give a warning if an attempt is made to change a locked binding. o \SweaveInput is now supported when generating concordances in Sweave(). o findLineNum() and setBreakpoint() now allow the environment to be specified indirectly; the latter gains a clear argument to allow it to call untrace(). o The body of a closure can be one of further types of R...
2011 Oct 31
0
R 2.14.0 is released
...es for a non-generic version of a function if called from a package with a namespace. (It always did for packages without a namespace.) o Setting the environment variable _R_WARN_ON_LOCKED_BINDINGS_ will give a warning if an attempt is made to change a locked binding. o \SweaveInput is now supported when generating concordances in Sweave(). o findLineNum() and setBreakpoint() now allow the environment to be specified indirectly; the latter gains a clear argument to allow it to call untrace(). o The body of a closure can be one of further types of R...