Yihui

This is confusing to me. Ideally Sweave should write that file in the
> temp folder, and R will clean up the temp dir string in the tex
> output. However, in your case, both tasks failed. Have you set up any
> Sweave options like prefix and prefix.string in your document? Or have
> you ever changed the Sweave module in LyX? What are the first few
> lines of messages when you compile the document? (View-->View
> Messages)
>

Not as confusing as it is to me :-(

It's identical to the file that compiled in October, I opened the Lyx file
and tried to compile it and couldn't because I got this error, then opened
it in Lyx/Ubuntu and it compiled fine.

I have pasted the lines from View-->Messages errors come half way through,
so I thought this would be more informative than just the firet few lines

 21:59:54.210: Previewing ...

21:59:54.218: (buffer-view: ⌘R)

21:59:54.299: Rscript --verbose --no-save --no-restore
"/Applications/LyX.app/Contents/Resources/scripts/lyxsweave.R"
"/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/""R-GettingStarted.Rnw"
"/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/""R-GettingStarted.tex"
UTF-8 "/Users/graham/Dropbox/projects/R-Intro_Oct2011/"

21:59:54.302: running

21:59:54.302:
'/Library/Frameworks/R.framework/Versions/2.14/Resources/bin/R --slave
--no-restore --no-save --no-restore
--file=/Applications/LyX.app/Contents/Resources/scripts/lyxsweave.R --args
/var/folders/g3

21:59:54.302:
/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/R-GettingStarted.Rnw
/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/R-GettingStarted.tex
UTF-8'

21:59:54.302:

21:59:54.609: Writing to file
/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/R-GettingStarted.tex

21:59:54.611: Processing code chunks with options ...

21:59:54.627: 1 : keep.source term verbatim

21:59:54.646: 2 : echo keep.source

21:59:54.648: 3 : echo keep.source term verbatim

21:59:54.662: 4 : echo keep.source

21:59:54.664: 5 : echo keep.source

21:59:54.666: 6 : echo keep.source term verbatim

21:59:54.671: 7 : echo keep.source

21:59:54.674: 8 : echo keep.source term verbatim

21:59:54.686: 9 : echo keep.source

21:59:54.687: 10 : echo keep.source

21:59:54.689: 11 : echo keep.source

21:59:54.692: 12 : echo keep.source term verbatim pdf

21:59:54.748:

21:59:54.748: You can now run (pdf)latex on
'/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/R-GettingStarted.tex'

21:59:54.748: Warning message:

21:59:54.748: In readLines(f[1L], warn = FALSE) :

21:59:54.748: invalid input found on input connection
'/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/R-GettingStarted.Rnw'

21:59:54.778: pdflatex "R-GettingStarted.tex"

21:59:54.932: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)

21:59:54.934: restricted \write18 enabled.

21:59:54.940: entering extended mode

21:59:54.940: (./R-GettingStarted.tex

21:59:54.940: LaTeX2e <2011/06/27>

21:59:54.940: Babel <v3.8m> and hyphenation patterns for english, dumylang,
nohyphenation, ge

21:59:54.940: rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans,
ancientgreek, ibycus, arabi

21:59:54.941: c, armenian, basque, bulgarian, catalan, pinyin, coptic,
croatian, czech, danis

21:59:54.941: h, dutch, ukenglish, usenglishmax, esperanto, estonian,
ethiopic, farsi, finnis

21:59:54.941: h, french, galician, german, ngerman, swissgerman, monogreek,
greek, hungarian,

21:59:54.941: icelandic, assamese, bengali, gujarati, hindi, kannada,
malayalam, marathi, or

21:59:54.941: iya, panjabi, tamil, telugu, indonesian, interlingua, irish,
italian, kurmanji,

21:59:54.941: lao, latin, latvian, lithuanian, mongolian, mongolianlmc,
bokmal, nynorsk, pol

21:59:54.941: ish, portuguese, romanian, russian, sanskrit, serbian,
serbianc, slovak, sloven

21:59:54.941: ian, spanish, swedish, turkish, turkmen, ukrainian,
uppersorbian, welsh, loaded

21:59:54.941: .

21:59:54.941:

21:59:55.396: pdflatex
"R-GettingStarted.tex"/Users/Shared/LyX/lyx-2.0.2/src/support/Systemcall.cpp(243):
Systemcall: 'pdflatex "R-GettingStarted.tex"' finished with exit code 1

21:59:55.550: This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011)

21:59:55.550: restricted \write18 enabled.

21:59:55.558: entering extended mode

21:59:55.559: (./R-GettingStarted.tex

21:59:55.559: LaTeX2e <2011/06/27>

21:59:55.559: Babel <v3.8m> and hyphenation patterns for english, dumylang,
nohyphenation, ge

21:59:55.559: rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans,
ancientgreek, ibycus, arabi

21:59:55.559: c, armenian, basque, bulgarian, catalan, pinyin, coptic,
croatian, czech, danis

21:59:55.559: h, dutch, ukenglish, usenglishmax, esperanto, estonian,
ethiopic, farsi, finnis

21:59:55.559: h, french, galician, german, ngerman, swissgerman, monogreek,
greek, hungarian,

21:59:55.560: icelandic, assamese, bengali, gujarati, hindi, kannada,
malayalam, marathi, or

21:59:55.560: iya, panjabi, tamil, telugu, indonesian, interlingua, irish,
italian, kurmanji,

21:59:55.560: lao, latin, latvian, lithuanian, mongolian, mongolianlmc,
bokmal, nynorsk, pol

21:59:55.560: ish, portuguese, romanian, russian, sanskrit, serbian,
serbianc, slovak, sloven

21:59:55.560: ian, spanish, swedish, turkish, turkmen, ukrainian,
uppersorbian, welsh, loaded

21:59:55.560: .

21:59:55.560:

/Users/Shared/LyX/lyx-2.0.2/src/support/Systemcall.cpp(243): Systemcall:
'pdflatex "R-GettingStarted.tex"' finished with exit code 1

Error: Cannot view file

----------------------------------------

File does not exist:
/var/folders/g3/h89z1g_n7yv3fth6y2yd2nlh0000gn/T/lyx_tmpdir.JL3034/lyx_tmpbuf2/R-GettingStarted.pdf

21:59:59.296: Error while previewing format: pdf2

22:00:12.128: (dialog-toggle progress)

Reply via email to