>>Gorjanc Gregor <gregor.gorj...@bfro.uni-lj.si> writes:
>> In this way there would be no problems for R, but this creates another
>> problem with paths for produced figures. Do you see any other solution
>> along these lines?

> After looking desperately for an equivalent of PATH in R, my idea was to
> define a variable, like
>   documentpath="path/to/doc/"
> and use that in the code if I need it.
>
> A more general solution could be to set an environment variable (for any
> converter) LYX_DOCUMENT_PATH before launching the converter. This means
> that R code (and other code) would be able to read it.

Can you clarify about how R would be able to read this variable? Does this mean 
that the
user would have to use this variable in the chunks explicitly? It seems rather 
clumsy and
it puts burden on the user. I think this should be done automatically. Afterall 
the source
of the problem is that LyX jumps to some other place. Why is this actually done?

gg

Reply via email to