Sweave-Lyx from terminal on Mac

November 12, 2009
By

(This article was first published on Gregor Gorjanc (gg), and kindly contributed to R-bloggers)

Mark Heckmann writes:
In your paper "Using Sweave with Lyx" (great work bty) you pointed out that one can see the sweave error code when processing when starting lyx from the terminal. I just changed from Windows to Mac so that's new for me. Could you send me a few lines how to do that, that is how to operate lyx from terminal and sweave the content from the terminal.
I am not familiar with Mac, though would be happy to own one;) Since Mac OS is build on top of some linux/unix like system you need to start the terminal (console) with shell and find the lyx binary. Perhaps something like this on my linux box (text following $are shell commands) # Find the lyx binary$ which lyx
/usr/bin/lyx

# Start lyx from console
\$ lyx&