From 7854cc96edc579c8d709449adecfcf929fd05460 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 31 May 2011 10:44:11 +0000 Subject: [PATCH] Fix bug #7552: Use of expression() in plot R command fails This is dur to the use of the null device, which causes problems. Note that, as a consequence, a Rplots.pdf file is created in the document directory. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38896 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/scripts/lyxsweave.R | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/scripts/lyxsweave.R b/lib/scripts/lyxsweave.R index 32979c22af..bdc3d500d2 100644 --- a/lib/scripts/lyxsweave.R +++ b/lib/scripts/lyxsweave.R @@ -32,10 +32,6 @@ setwd(ls.args[4]) # this is passed as a prefix.string to tell where temporary files should go ls.pr <- gsub('\\.([^/]*)$', '-\\1', sub("\\.tex$", "", ls.args[2])) -# Replace the default pdf device by the null device (tip from Yihui Xie) -# See: http://yihui.name/en/2010/12/a-special-graphics-device-in-r-the-null-device/ -.Call("R_GD_nullDevice", PACKAGE = "grDevices") - # finally run sweave Sweave(file=ls.args[1], output=ls.args[2], syntax="SweaveSyntaxNoweb", stylepath=ls.sp, prefix.string=ls.pr)