Re: 2.0.2 and sweave
That is good to know. Thanks a lot for the experiment! I need to add this approach to the manual; it is much easier (and safer) than messing with the PATH variable directly. I often feel extremely frustrated with instructing Windows users on how to modify PATH. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Dec 4, 2011 at 6:46 PM, Jack Tanner wrote: > Yihui Xie yihui.name> writes: > >> >> Or maybe it is easier to modify the preferences? >> Tools-->Preferences-->Paths-->PATH prefix. I have never tried it. > > This works perfectly. Even better, it interpolates environment variables: > > Set R_HOME globally, e.g., to C:\Program Files\R\R-2.14.0 > > Then in LyX, under Tools-->Preferences-->Paths-->PATH prefix, append > > ;$R_HOME\bin > > and "reconfigure" LyX. > > Proceed "preview" the PDF. > > Kudos! >
Re: 2.0.2 and sweave
Yihui Xie yihui.name> writes: > > Or maybe it is easier to modify the preferences? > Tools-->Preferences-->Paths-->PATH prefix. I have never tried it. This works perfectly. Even better, it interpolates environment variables: Set R_HOME globally, e.g., to C:\Program Files\R\R-2.14.0 Then in LyX, under Tools-->Preferences-->Paths-->PATH prefix, append ;$R_HOME\bin and "reconfigure" LyX. Proceed "preview" the PDF. Kudos!
Re: 2.0.2 and sweave
We mentioned this once before (http://comments.gmane.org/gmane.editors.lyx.general/72719), but did not get anybody work on it. So let's call for python hackers again: it will be fantastic if LyX is able to find Rscript automatically under Windows (from environmental variables RHOME, R_HOME or from the Windows Registry Hive). Before that, users still have to modify the PATH by themselves. Or maybe it is easier to modify the preferences? Tools-->Preferences-->Paths-->PATH prefix. I have never tried it. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Dec 4, 2011 at 2:06 PM, Jack Tanner wrote: > Yihui Xie yihui.name> writes: > >> >> We need someone to update the wiki pages (I'm quite busy these days); >> currently you should refer to the manual built-in with LyX >> (examples/sweave.lyx), and a PDF version is here: >> https://github.com/downloads/yihui/lyx/sweave.pdf > > Thanks! Looks like a very smooth integration. > > A couple of questions: Is it possible to set the path to Rscript directly > within > LyX, without changing the global system PATH? Does LyX check either RHOME or > R_HOME? Is it preferable to use the 32-bit or 64-bit Rscript? > > >
Re: 2.0.2 and sweave
On Sun, Dec 4, 2011 at 8:42 PM, Yihui Xie wrote: > We need someone to update the wiki pages (I'm quite busy these days); > This should be coordinated with the original authors. I never quite understood those instructions, but I think there are still people using them. Liviu > currently you should refer to the manual built-in with LyX > (examples/sweave.lyx), and a PDF version is here: > https://github.com/downloads/yihui/lyx/sweave.pdf > > Regards, > Yihui > -- > Yihui Xie > Phone: 515-294-2465 Web: http://yihui.name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA > > > > On Sun, Dec 4, 2011 at 1:34 PM, Jack Tanner wrote: >> I'd like to get started with LyX and Sweave. There are a bunch of tutorials >> out >> there, some linked from the LyX wiki, some not. But I can't tell which are >> current and which aren't. I'm on LyX 2.0.2, R 2.14, Miktex 2.9, Windows 7 >> x64; >> could someone suggest the right tutorial or just post the steps here? Thanks >> in >> advance. >> -- 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: 2.0.2 and sweave
On Sun, Dec 4, 2011 at 9:01 PM, Xu Wang wrote: > Just curious -- why isn't Yihui's manual in the Help menu in LyX? Because > it's still a work in progress? > It didn't get into 2.0.2 because of the string freeze. It's in for 2.0.3. Also, it is already shipped in 'examples'. Liviu http://www.lyx.org/trac/ticket/7891 > Xu > > > On Sun, Dec 4, 2011 at 2:42 PM, Yihui Xie wrote: >> >> We need someone to update the wiki pages (I'm quite busy these days); >> currently you should refer to the manual built-in with LyX >> (examples/sweave.lyx), and a PDF version is here: >> https://github.com/downloads/yihui/lyx/sweave.pdf >> >> Regards, >> Yihui >> -- >> Yihui Xie >> Phone: 515-294-2465 Web: http://yihui.name >> Department of Statistics, Iowa State University >> 2215 Snedecor Hall, Ames, IA >> >> >> >> On Sun, Dec 4, 2011 at 1:34 PM, Jack Tanner wrote: >> > I'd like to get started with LyX and Sweave. There are a bunch of >> > tutorials out >> > there, some linked from the LyX wiki, some not. But I can't tell which >> > are >> > current and which aren't. I'm on LyX 2.0.2, R 2.14, Miktex 2.9, Windows >> > 7 x64; >> > could someone suggest the right tutorial or just post the steps here? >> > Thanks in >> > advance. >> > > > -- 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: 2.0.2 and sweave
Yihui Xie yihui.name> writes: > > We need someone to update the wiki pages (I'm quite busy these days); > currently you should refer to the manual built-in with LyX > (examples/sweave.lyx), and a PDF version is here: > https://github.com/downloads/yihui/lyx/sweave.pdf Thanks! Looks like a very smooth integration. A couple of questions: Is it possible to set the path to Rscript directly within LyX, without changing the global system PATH? Does LyX check either RHOME or R_HOME? Is it preferable to use the 32-bit or 64-bit Rscript?
Re: 2.0.2 and sweave
Just curious -- why isn't Yihui's manual in the Help menu in LyX? Because it's still a work in progress? Xu On Sun, Dec 4, 2011 at 2:42 PM, Yihui Xie wrote: > We need someone to update the wiki pages (I'm quite busy these days); > currently you should refer to the manual built-in with LyX > (examples/sweave.lyx), and a PDF version is here: > https://github.com/downloads/yihui/lyx/sweave.pdf > > Regards, > Yihui > -- > Yihui Xie > Phone: 515-294-2465 Web: http://yihui.name > Department of Statistics, Iowa State University > 2215 Snedecor Hall, Ames, IA > > > > On Sun, Dec 4, 2011 at 1:34 PM, Jack Tanner wrote: > > I'd like to get started with LyX and Sweave. There are a bunch of > tutorials out > > there, some linked from the LyX wiki, some not. But I can't tell which > are > > current and which aren't. I'm on LyX 2.0.2, R 2.14, Miktex 2.9, Windows > 7 x64; > > could someone suggest the right tutorial or just post the steps here? > Thanks in > > advance. > > >
Re: 2.0.2 and sweave
We need someone to update the wiki pages (I'm quite busy these days); currently you should refer to the manual built-in with LyX (examples/sweave.lyx), and a PDF version is here: https://github.com/downloads/yihui/lyx/sweave.pdf Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Sun, Dec 4, 2011 at 1:34 PM, Jack Tanner wrote: > I'd like to get started with LyX and Sweave. There are a bunch of tutorials > out > there, some linked from the LyX wiki, some not. But I can't tell which are > current and which aren't. I'm on LyX 2.0.2, R 2.14, Miktex 2.9, Windows 7 x64; > could someone suggest the right tutorial or just post the steps here? Thanks > in > advance. >
2.0.2 and sweave
I'd like to get started with LyX and Sweave. There are a bunch of tutorials out there, some linked from the LyX wiki, some not. But I can't tell which are current and which aren't. I'm on LyX 2.0.2, R 2.14, Miktex 2.9, Windows 7 x64; could someone suggest the right tutorial or just post the steps here? Thanks in advance.