Skip to content
Prev 309904 / 398502 Next

Problem compiling Rnw file

I'll second the full path option.

Just create a variable path_to_data and concatenate it with the names of any files you need in that directory.
You could also try to use relative paths if the data is "nearby" and is likely to not change that position.

e.g. if the data was in '/home/r/Documents/mydata/whatever.txt', while you are working in '/home/r/Documents/myproj/', you can reach that directory via '../mydata/whatever.txt'.
On 05.11.2012, at 16:23, Riccardo Romoli wrote: