Hi,

I'm using Lyx 2.0 with Windows 7.
When I try to preview the sweave.lyx example I get an error:

Error in setwd(ls.args[4]) : cannot change working directory

There is something wrong with the arguments of the script.

When I try to execute the script on the console:

Rscript --verbose --no-save --no-restore "C:/Program Files/LyX20/bin/../Resources/scripts/lyxsweave.R" --args "C:/Users/Franz/AppData/Local/Temp/lyx_tmpdir.Hp5712/lyx_tmpbuf2/""sweave.Rnw" "C:/Users/Franz/AppData/Local/Temp/lyx_tmpdir.Hp5712/lyx_tmpbuf2/""sweave.tex" ISO-8859-15 "C:/Program Files/LyX20/Resources/examples/"

I get this error:

Error en setwd(ls.args[4]) : missing value is invalid

ls.args shows as NA on the script.

Does anyone have the same problem?

Franz

Reply via email to