Yes, Yihui! Thank you, that was the missing step! I added "C:\Program Files\R\R-2.13.0\share/texmf to MikTeX>Maintenance>Settings>Roots and now my (very simple) example compiles.
Liviu, thanks for being willing to help...fortunately Yihui's tip hit it right on the head. Shane On Wed, Oct 5, 2011 at 7:25 PM, Yihui Xie <x...@yihui.name> wrote: > I believe "Environment Schunk undefined" means LaTeX cannot find > Sweave.sty, which is part of R. Since you are using MikTeX, you can > easily add the texmf tree (find it using R code R.home('share')) to > MikTeX (using the menu Setting in the start menu or something -- I do > not remember exactly). > > We have solved this headache that tons of users have run into in LyX > 2.0.1, but currently there is no official release for Windows yet. > > 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 Wed, Oct 5, 2011 at 8:01 PM, Liviu Andronic <landronim...@gmail.com> > wrote: > > On Thu, Oct 6, 2011 at 2:05 AM, Shane Siers <shanesi...@gmail.com> > wrote: > >> Hi, User's List... > >> > >> I'm a new-ish LyX user, otherwise naive to LaTeX. After about 10 hours > of > >> frustration, I got LyX to successfully open the Sweave module, and allow > me > >> > > Would have been a breeze on Linux.. > > > > > >> to format text as a Sweave chunk. However, when I View>View > >> [PDF(pdflatex)], I get a list of errors: > >> > > Can you compile examples/sweave.lyx? Else, can you provide a minimal > > example of the LyX file that gives you errors? > > Liviu > > > > > >> Missing \endcsname inserted. > >> LaTeX Error: Missing \begin{document}. > >> Extra \endcsname. > >> Missing \endcsname inserted. > >> Missing \endcsname inserted. > >> LaTeX Error: Environment Schunk undefined. > >> LaTeX Error: Environment Sinput undefined. > >> > >> ...et. cetera... > >> > >> I'm using LyX 2.0.0, R 2.13.0 (64-bit), MikTeX 2.9, Windows 7 (64-bit). > >> > >> The text in my Sweave->LaTeX (pdflatex) converter is: Rscript --verbose > >> --no-save --no-restore $$s/scripts/lyxsweave.R $$p$$i $$p$$o $$e $$r > >> > >> The text in my PATH Prefix box is: > >> > $LyXDir\bin;$LyXDir\python;$LyXDir\imagemagick;$LyXDir\ghostscript;C:\Program > >> Files (x86)\MiKTeX 2.9\miktex\bin;C:\Program Files > >> (x86)\LyX20\bin;C:\Program Files\R\R-2.13.0\bin; C:\Program > >> Files\R\R-2.13.0\bin\x86 > >> > >> Are the spaces in the path a problem? > >> > >> Can anyone help to get me Sweave-ing? > >> > >> -- > >> Shane Siers > >> Graduate Student > >> Colorado State University > >> > >> > > > > > > > > -- > > 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 > > > -- Shane