Thanks for looking into it. I’m still getting the error I originally reported. The file produces a PDF within R, but I can’t get it to import to LYX.
An error occurred while running: Rscript --verbose --no-save --no-restore "/Applications/LyX.app/Contents/Resources/scripts/lyxknitr.R" "/Users/wms5f/Documents/Teaching/Batten Stats/Shiny/""test4.Rnw" "/Users/wms5f/Documents/Teaching/Batten Stats/Shiny/""test4.tex" "/Users/wms5f/Documents/Teaching/Batten Stats/Shiny/“ wshobe > On Feb 9, 2015, at 6:15 PM, LyX Ticket Tracker <t...@lyx.org> wrote: > > #8734: Error importing Rnw file to Lyx: Rscript fails on setwd(.cmdargs[4]) > ----------------------+------------------------- > Reporter: wshobe | Owner: lasgouttes > Type: defect | Status: new > Priority: normal | Milestone: 2.1.x > Component: literate | Version: 2.0.6 > Severity: normal | Resolution: > Keywords: | > ----------------------+------------------------- > > Comment (by skostysh): > > As far as I understand, this problem still exists. I think the problem is > that we are using a script that is meant for export for importing. See the > discussion here: > https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg175473.html > > -- > Ticket URL: <http://www.lyx.org/trac/ticket/8734#comment:6> > The LyX Project <http://www.lyx.org/> > LyX -- The Document Processor