-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lyx pgfSweave on mac #5
Comments
No no, please ignore everything in the web on the configuration of (pgf)Sweave in LyX, including my own blog posts and even the LyX wiki. What I can tell you at the moment are:
|
Hi Yihui,
I kind of missed that in your video. cheers |
Both issues have been addressed in the manual: https://github.com/downloads/yihui/lyx/sweave.pdf The video is outdated somehow. I may do another one after LyX 2.0.3 is released, in which you will see both the Sweave module and the knitr module; I have finally done what I wished to do in LyX. |
that's great! although I have to say I'm more than happy with knitr at the On 28 January 2012 04:24, Yihui Xie <
|
Just a quick note: LyX 2.0.3 will be released soon, and knitr will be officially supported there. The announcement has not been made yet, but binaries and sources are already in FTP: ftp://ftp.lyx.org/pub/lyx/bin/2.0.3/ |
i might say this is as good as it gets. thanks for letting me know! On 29 February 2012 20:28, Yihui Xie <
|
hi yihui,
in the unlikely case this is still of interest for anybody, I was succesful in hooking up lyx to pgfsweave on my mac. I didnt' get very far with the line for the converter in the preferences file as posted on your blog, i.e.
R -q -e "library(pgfSweave);pgfSweave('yourfile.Rnw')"
this may be specific to my machine, but pgfSweave() failed each single time.
instead i wrote into my lyx preferences:
\converter "literate" "latex" "R CMD pgfsweave -n $$i" ""
and that did the trick. one has to create a link into /Library/Frameworks/R.framework/Resources/bin/pgfsweave from /Library/Frameworks/R.framework/Resources/library/pgfSweave/exec/pgfsweave-script.R
for pgfsweave if not installed from source.
by the way: i was a bit too quick with confirming success on the knitr front: I can just run a standard Sweave output with lyx. something seems not to be working.
looking forward to new developments!
cheers
flo
The text was updated successfully, but these errors were encountered: