Cannot run knitr on Lyx for MacBook -


i using last version on lyx 2.0.5.1 , rstudio 0.97.318. have installed knitr in r, /usr/bin/rscript in path prefix in lyx, still fail run example files knitr.lyx. error is:

an error occurred while running: rscript --verbose --no-save --no-restore "/applications/lyx.app/contents/resources/scripts/lyxknitr.r" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl9170/lyx_tmpb... 

i changed lyxknitr.r other versions listed on official cite, not work them either. when did similar things on windows 7, runs ok. tried reinstall lyx, did not help. else can do?

thanks!

update: installed stringer package in r, reconfigured, lyx still gives , error:

12:24:25.747: rscript --verbose --no-save --no-restore "/applications/lyx.app/contents/resources/scripts/lyxknitr.r" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/""knitr.rnw" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/""knitr.tex" iso-8859-15 "/users/natasha/stats315b/hw1/" 12:24:25.749: running 12:24:25.758:   '/library/frameworks/r.framework/versions/2.15/resources/bin/r --slave --no-restore --no-save --no-restore --file=/applications/lyx.app/contents/resources/scripts/lyxknitr.r --args /var/folders/ls/ 12:24:25.759: mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/knitr.rnw /var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/knitr.tex iso-8859-15' 12:24:25.759:  12:24:25.946: error in loadnamespace(i, c(lib.loc, .libpaths())) :  12:24:25.951:   there no package called 'stringr' 12:24:25.957: error: package/namespace load failed 'knitr' 12:24:25.957: execution halted  running: rscript --verbose --no-save --no-restore "/applications/lyx.app/contents/resources/scripts/lyxknitr.r" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/""knitr.rnw" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/""knitr.tex" iso-8859-15 "/users/natasha/stats315b/hw1/" support/systemcall.cpp (273): systemcall: 'rscript --verbose --no-save --no-restore "/applications/lyx.app/contents/resources/scripts/lyxknitr.r" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/""knitr.rnw" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpbuf3/""knitr.tex" iso-8859-15 "/users/natasha/stats315b/hw1/"' finished exit code 1 error: cannot convert file ---------------------------------------- error occurred while running: rscript --verbose --no-save --no-restore "/applications/lyx.app/contents/resources/scripts/lyxknitr.r" "/var/folders/ls/mbs_stj505lc25gj2m7h5h100000gn/t/lyx_tmpdir.jl2777/lyx_tmpb... 12:24:27.545: error while previewing format: pdf2 

i did not have install stringr under windows , worked ok. help!


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -