SV: [R] Sweave and paths

Søren Højsgaard Soren.Hojsgaard at
Wed May 18 09:07:17 CEST 2005

Don't think it is possible. To overcome the problem I wrote a small R-program which replaced foo with foo\bar in the Sweave file. Clumpsy, sure, but...


Fra: r-help-bounces at 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 

I couldn't see anything in the documentation, and I looked in the 
source code, but it seems that SweaveReadFiledoc() wants to look only 
in the directory which contains foo.

Still, I'm guessing that I'm missing something. Any tips would be 
much appreciated.


R-help at mailing list
PLEASE do read the posting guide!

More information about the R-help mailing list