Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Franz Jimeno

Thanks,

changing the numbers to the correct args possition in lyxswave.R solved 
the problem.


Franz


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Jean-Marc Lasgouttes

Le 14/06/2011 01:00, Yihui Xie a écrit :

Hi,

I think the problem came from the explicit argument --args when
running Rscript; it should not be there. You can remove it and try
again.


Indeed, I do not know where this --args comes from. It is definitely not 
in the code distributed with LyX.


JMarc



Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Uwe Stöhr

While you are at it, can anybody please check if our template file for Sweave:
http://www.lyx.org/trac/export/39065/lyx-devel/branches/BRANCH_2_0_X/lib/examples/sweave.lyx
and our Wiki page:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave
are still compilable and up to date?

thanks in advance and regards
Uwe


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Liviu Andronic
On Wed, Jun 15, 2011 at 4:25 PM, Uwe Stöhr uwesto...@web.de wrote:
 While you are at it, can anybody please check if our template file for
 Sweave:
 http://www.lyx.org/trac/export/39065/lyx-devel/branches/BRANCH_2_0_X/lib/examples/sweave.lyx

The example shipped with 2.0 compiles just fine here (Xubuntu 10.04,
LyX 2.0.0, TL 2009, R 2.13.0). When I get to it, I'll write some
documentation, too.


 and our Wiki page:
 http://wiki.lyx.org/LyX/LyxWithRThroughSweave
 are still compilable and up to date?

The server seems down so I cannot check the page, but from memory most
of the info in it was obsolete long before 2.0. (I may be wrong, but
each time I tried to read it I skipped most of the material since it
didn't seem to apply to my particular case; my best guess is that it
was valid up until Gregor's layouts.)

Cheers
Liviu


 thanks in advance and regards
 Uwe




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Franz Jimeno

Thanks,

changing the numbers to the correct args possition in lyxswave.R solved 
the problem.


Franz


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Jean-Marc Lasgouttes

Le 14/06/2011 01:00, Yihui Xie a écrit :

Hi,

I think the problem came from the explicit argument --args when
running Rscript; it should not be there. You can remove it and try
again.


Indeed, I do not know where this --args comes from. It is definitely not 
in the code distributed with LyX.


JMarc



Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Uwe Stöhr

While you are at it, can anybody please check if our template file for Sweave:
http://www.lyx.org/trac/export/39065/lyx-devel/branches/BRANCH_2_0_X/lib/examples/sweave.lyx
and our Wiki page:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave
are still compilable and up to date?

thanks in advance and regards
Uwe


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Liviu Andronic
On Wed, Jun 15, 2011 at 4:25 PM, Uwe Stöhr uwesto...@web.de wrote:
 While you are at it, can anybody please check if our template file for
 Sweave:
 http://www.lyx.org/trac/export/39065/lyx-devel/branches/BRANCH_2_0_X/lib/examples/sweave.lyx

The example shipped with 2.0 compiles just fine here (Xubuntu 10.04,
LyX 2.0.0, TL 2009, R 2.13.0). When I get to it, I'll write some
documentation, too.


 and our Wiki page:
 http://wiki.lyx.org/LyX/LyxWithRThroughSweave
 are still compilable and up to date?

The server seems down so I cannot check the page, but from memory most
of the info in it was obsolete long before 2.0. (I may be wrong, but
each time I tried to read it I skipped most of the material since it
didn't seem to apply to my particular case; my best guess is that it
was valid up until Gregor's layouts.)

Cheers
Liviu


 thanks in advance and regards
 Uwe




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Franz Jimeno

Thanks,

changing the numbers to the correct args possition in lyxswave.R solved 
the problem.


Franz


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Jean-Marc Lasgouttes

Le 14/06/2011 01:00, Yihui Xie a écrit :

Hi,

I think the problem came from the explicit argument "--args" when
running Rscript; it should not be there. You can remove it and try
again.


Indeed, I do not know where this --args comes from. It is definitely not 
in the code distributed with LyX.


JMarc



Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Uwe Stöhr

While you are at it, can anybody please check if our template file for Sweave:
http://www.lyx.org/trac/export/39065/lyx-devel/branches/BRANCH_2_0_X/lib/examples/sweave.lyx
and our Wiki page:
http://wiki.lyx.org/LyX/LyxWithRThroughSweave
are still compilable and up to date?

thanks in advance and regards
Uwe


Re: Error with Lyx 2.0 and Sweave

2011-06-15 Thread Liviu Andronic
On Wed, Jun 15, 2011 at 4:25 PM, Uwe Stöhr  wrote:
> While you are at it, can anybody please check if our template file for
> Sweave:
> http://www.lyx.org/trac/export/39065/lyx-devel/branches/BRANCH_2_0_X/lib/examples/sweave.lyx
>
The example shipped with 2.0 compiles just fine here (Xubuntu 10.04,
LyX 2.0.0, TL 2009, R 2.13.0). When I get to it, I'll write some
documentation, too.


> and our Wiki page:
> http://wiki.lyx.org/LyX/LyxWithRThroughSweave
> are still compilable and up to date?
>
The server seems down so I cannot check the page, but from memory most
of the info in it was obsolete long before 2.0. (I may be wrong, but
each time I tried to read it I skipped most of the material since it
didn't seem to apply to my particular case; my best guess is that it
was valid up until Gregor's layouts.)

Cheers
Liviu


> thanks in advance and regards
> Uwe
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Error with Lyx 2.0 and Sweave

2011-06-13 Thread Yihui Xie
Hi,

I think the problem came from the explicit argument --args when
running Rscript; it should not be there. You can remove it and try
again.

Tools--Preferences--Converters; find Sweave to LaTeX (whatever);
then modify the converter (remove --args).

The presence of --args will make ls.args[4] to be ISO-8859-15, which
is obviously not a directory name.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Tue, Jun 7, 2011 at 6:22 AM, Franz Jimeno jimenofranci...@uniovi.es wrote:
 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



Re: Error with Lyx 2.0 and Sweave

2011-06-13 Thread Yihui Xie
Hi,

I think the problem came from the explicit argument --args when
running Rscript; it should not be there. You can remove it and try
again.

Tools--Preferences--Converters; find Sweave to LaTeX (whatever);
then modify the converter (remove --args).

The presence of --args will make ls.args[4] to be ISO-8859-15, which
is obviously not a directory name.

Regards,
Yihui
--
Yihui Xie xieyi...@gmail.com
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Tue, Jun 7, 2011 at 6:22 AM, Franz Jimeno jimenofranci...@uniovi.es wrote:
 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



Re: Error with Lyx 2.0 and Sweave

2011-06-13 Thread Yihui Xie
Hi,

I think the problem came from the explicit argument "--args" when
running Rscript; it should not be there. You can remove it and try
again.

Tools-->Preferences-->Converters; find Sweave to LaTeX (whatever);
then modify the converter (remove "--args").

The presence of "--args" will make ls.args[4] to be ISO-8859-15, which
is obviously not a directory name.

Regards,
Yihui
--
Yihui Xie 
Phone: 515-294-2465 Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA



On Tue, Jun 7, 2011 at 6:22 AM, Franz Jimeno  wrote:
> 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
>