[R] SweaveInput and absolute paths

Dieter Menne dieter.menne at menne-biomed.de
Thu Apr 26 21:12:28 CEST 2007


Kevin R. Coombes <krc <at> mdacc.tmc.edu> writes:

> 
> Is there a way to turn off the automatic inclusion of "./" at the 
> beginning of a path specified in an \SweaveInput{} instruction?
> 

Giving a full file path name works for me (Windows, R 2.4.1)

\SweaveInput{C:/tmp/MyTitle.rnw}

Note the if the path does not exist, e.g

\SweaveInput{C:/tmpnotexist/MyTitle.rnw},

the error message refert to  "./C:/tmpnotexist/MyTitle.rnw", so it could be that
the path you chose had been incorrectly entered.

Dieter



More information about the R-help mailing list