Hi Jean-Marc,

Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
> I am trying to use Sweave and LyX for a project of my own, and have the
> following problem: my R code reads some data
>   somevars<-read.table("somevars.dat")
> and this data file is not available when Sweave is ran from the /tmp
> directory. 
> 
> I guess this problem is quite common... How do people solve it in
> general? I do not want to use an absolute path, since it makes the file
> non portable...

I am afraid there is no help here unless you are wiling to use the absolute
path. I agree that this is far from optimal, but it is still tolerable. Afterall
one probably does not switch computers/setups as often as underwear ;)

P.S. Did you see my post about use of SageTeX?
http://article.gmane.org/gmane.editors.lyx.devel/111574/match=sweave

gg



Reply via email to