[R] SweaveInput and absolute paths

Dieter Menne
2007-04-26T19:12:28Z

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