Re: [R] texi2dvi runs but produces no output
Christiaan, Sorry I did not respond earlier. I have been away on vacation. With all the changes in LyX 2.x to make Sweave stuff easier, I suspect this problem should go away. I have not upgraded my system, but a couple folks that have done so reported no problems with a setup like yours. Probably best to send a request to the LyX users' list to get this resolved, as LyX development is very interested in this aspect nowadays. http://www.lyx.org/MailingLists#toc4 - Dave 2011/6/17 Uwe Ligges lig...@statistik.tu-dortmund.de: On 17.06.2011 09:24, christiaan pauw wrote: Thanks for the advice. I tried to install the package as instructed. Command and results below: install.packages(patchDVI, repos=http://R-Forge.R-project.org;) Installing package(s) into ‘C:/Users/nova/Documents/R/win-library/2.13’ (as ‘lib’ is unspecified) Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ‘patchDVI’ is not available (for R version 2.13.0) The problem is that the Windows binary of that package is really not available on R-Forge. You can install from sources if you ask R to: install.packages(patchDVI, repos=http://R-Forge.R-project.org;, type=source) given you have the Rtools installed. I then ran the tests in Rtools. Which tests in Rtools??? I suspect the fact that I have I have installed R in a path containing spaces may be the problem - maybe also for Paths with spaces generate problems for LaTeX and R tries to work around, but may fail. Not sure why you do the stuff below at all and why R cannot change the working directory. Uwe Ligges the Sweave part. Is there any other remedy but to re-install R or can I insert a link in a path without spaces ? library(tools) testInstalledBasic(both) running strict specific tests running code in ‘eval-etc.R’ unable to open output file FAILED [1] 1 Warning message: running command 'C:/PROGRA~1/R/R-213~1.0/bin/i386/R CMD BATCH --vanilla --no-timing eval-etc.R eval-etc.Rout' had status 2 testInstalledPackages(base) Error in setwd(outDir) : cannot change working directory testInstalledPackages(recommended) Error in setwd(outDir) : cannot change working directory On 16 June 2011 14:10, Duncan Murdochmurdoch.dun...@gmail.com wrote: On 11-06-16 7:50 AM, christiaan pauw wrote: Hi everybody. Was the problem below ever solved? I have the same problem on Windows 7 with R 2.13.0 and LyX 2 - everything freshly installed. My Rweave.bat and MakeSweave.R files are similar to below (I followed http://wiki.lyx.org/uploads/**LaTeX/SweaveR/lyx_with_r_and_** sweave_instructions.pdfhttp://wiki.lyx.org/uploads/LaTeX/SweaveR/lyx_with_r_and_sweave_instructions.pdf ) I don't use LyX or that batch file, I use some code I wrote that's in the patchDVI package (https://r-forge.r-project.**org/R/?group_id=233https://r-forge.r-project.org/R/?group_id=233) that I wrote. You might want to try it. The single line to run Sweave and pdflatex is Rscript -e patchDVI::SweavePDF( '$1' ) where $1 is the name of the .Rnw file. If that doesn't work for you, I might be able to help with debugging. Duncan Murdoch [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] texi2dvi runs but produces no output
Thanks for the advice. I tried to install the package as instructed. Command and results below: install.packages(patchDVI, repos=http://R-Forge.R-project.org;) Installing package(s) into C:/Users/nova/Documents/R/win-library/2.13 (as lib is unspecified) Warning message: In getDependencies(pkgs, dependencies, available, lib) : package patchDVI is not available (for R version 2.13.0) I then ran the tests in Rtools. I suspect the fact that I have I have installed R in a path containing spaces may be the problem - maybe also for the Sweave part. Is there any other remedy but to re-install R or can I insert a link in a path without spaces ? library(tools) testInstalledBasic(both) running strict specific tests running code in eval-etc.R unable to open output file FAILED [1] 1 Warning message: running command 'C:/PROGRA~1/R/R-213~1.0/bin/i386/R CMD BATCH --vanilla --no-timing eval-etc.R eval-etc.Rout' had status 2 testInstalledPackages(base) Error in setwd(outDir) : cannot change working directory testInstalledPackages(recommended) Error in setwd(outDir) : cannot change working directory On 16 June 2011 14:10, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 11-06-16 7:50 AM, christiaan pauw wrote: Hi everybody. Was the problem below ever solved? I have the same problem on Windows 7 with R 2.13.0 and LyX 2 - everything freshly installed. My Rweave.bat and MakeSweave.R files are similar to below (I followed http://wiki.lyx.org/uploads/**LaTeX/SweaveR/lyx_with_r_and_** sweave_instructions.pdfhttp://wiki.lyx.org/uploads/LaTeX/SweaveR/lyx_with_r_and_sweave_instructions.pdf ) I don't use LyX or that batch file, I use some code I wrote that's in the patchDVI package (https://r-forge.r-project.**org/R/?group_id=233https://r-forge.r-project.org/R/?group_id=233) that I wrote. You might want to try it. The single line to run Sweave and pdflatex is Rscript -e patchDVI::SweavePDF( '$1' ) where $1 is the name of the .Rnw file. If that doesn't work for you, I might be able to help with debugging. Duncan Murdoch [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] texi2dvi runs but produces no output
On 17.06.2011 09:24, christiaan pauw wrote: Thanks for the advice. I tried to install the package as instructed. Command and results below: install.packages(patchDVI, repos=http://R-Forge.R-project.org;) Installing package(s) into ‘C:/Users/nova/Documents/R/win-library/2.13’ (as ‘lib’ is unspecified) Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ‘patchDVI’ is not available (for R version 2.13.0) The problem is that the Windows binary of that package is really not available on R-Forge. You can install from sources if you ask R to: install.packages(patchDVI, repos=http://R-Forge.R-project.org;, type=source) given you have the Rtools installed. I then ran the tests in Rtools. Which tests in Rtools??? I suspect the fact that I have I have installed R in a path containing spaces may be the problem - maybe also for Paths with spaces generate problems for LaTeX and R tries to work around, but may fail. Not sure why you do the stuff below at all and why R cannot change the working directory. Uwe Ligges the Sweave part. Is there any other remedy but to re-install R or can I insert a link in a path without spaces ? library(tools) testInstalledBasic(both) running strict specific tests running code in ‘eval-etc.R’ unable to open output file FAILED [1] 1 Warning message: running command 'C:/PROGRA~1/R/R-213~1.0/bin/i386/R CMD BATCH --vanilla --no-timing eval-etc.R eval-etc.Rout' had status 2 testInstalledPackages(base) Error in setwd(outDir) : cannot change working directory testInstalledPackages(recommended) Error in setwd(outDir) : cannot change working directory On 16 June 2011 14:10, Duncan Murdochmurdoch.dun...@gmail.com wrote: On 11-06-16 7:50 AM, christiaan pauw wrote: Hi everybody. Was the problem below ever solved? I have the same problem on Windows 7 with R 2.13.0 and LyX 2 - everything freshly installed. My Rweave.bat and MakeSweave.R files are similar to below (I followed http://wiki.lyx.org/uploads/**LaTeX/SweaveR/lyx_with_r_and_** sweave_instructions.pdfhttp://wiki.lyx.org/uploads/LaTeX/SweaveR/lyx_with_r_and_sweave_instructions.pdf ) I don't use LyX or that batch file, I use some code I wrote that's in the patchDVI package (https://r-forge.r-project.**org/R/?group_id=233https://r-forge.r-project.org/R/?group_id=233) that I wrote. You might want to try it. The single line to run Sweave and pdflatex is Rscript -e patchDVI::SweavePDF( '$1' ) where $1 is the name of the .Rnw file. If that doesn't work for you, I might be able to help with debugging. Duncan Murdoch [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Re: [R] texi2dvi runs but produces no output
Thanks Uwe I have installed R in a path without spaces ( c:\R\R-2.13.0 ..) and ten installed patchDVI I Then rAn the command provided by Duncan on a file known to be correct from the Sweave examples: example(Sweave) (lots of output) and then patchDVI::SweavePDF(Sweave-test-1.tex) C:\PROGRA~1\MIKTEX~1.9\miktex\bin\texi2dvi.exe --version C:\PROGRA~1\MIKTEX~1.9\miktex\bin\texi2dvi.exe --pdf --tex-option=-synctex=-1 Sweave-test-1.tex -I C:/R/R-2.13.0/share/texmf/tex/latex -I C:/R/R-2.13.0/share/texmf/bibtex/bst 0 patches made. Did you set \SweaveOpts{concordance=TRUE}? Is it the fact that Miktex is still in path containing spaces that is causing this? best regrads Christiaan 2011/6/17 Uwe Ligges lig...@statistik.tu-dortmund.de On 17.06.2011 09:24, christiaan pauw wrote: Thanks for the advice. I tried to install the package as instructed. Command and results below: The problem is that the Windows binary of that package is really not available on R-Forge. You can install from sources if you ask R to: install.packages(patchDVI, repos=http://R-Forge.R-**project.orghttp://R-Forge.R-project.org, type=source) given you have the Rtools installed. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] texi2dvi runs but produces no output
I am working on a Windows XP machine with R 2.10.1 and a recent installation of MiKTeX 2.8. I use LyX (www.lyx.org) to write documents and have it set up to run Sweave, Stangle, and make the PDF through R using a batch script and a MakeSweave.R file. This system worked just fine until I ran some MiKTeX updates yesterday. This is a bit embarrassing as I helped produce a How-to guide to getting this working that is posted at the LyX Wiki (http://wiki.lyx.org/LyX/LyxWithRThroughSweave). After the updates yesterday, everything goes smoothly except that the code in the MakeSweave.R file that runs texi2dvi seems not to produce a PDF but gives no warnings or errors. The contents of the batch file are: Rterm --no-site-file --no-save -f C:/Program Files/LyX 1.6.5/bin/MakeSweave.R --args %1 The batch file is called in the temporary directory where LyX does its work, which is also open to all access. I have to admit that I still confused on the --args %1 part, but I can see that it works in the console transcript. The MakeSweave.R contents are: library(tools) args - commandArgs() filename - args[length(args)] Sweave(filename) Stangle(filename) basename - sub(\\.(Rnw|Rtex|nw)$, , filename) texi2dvi(paste(basename, .tex, sep=), pdf=TRUE) I run LyX from a command window and watch what goes on in the background. All goes fine through the whole process, texi2dvi runs and finishes, and then LyX pukes an error that it cannot open the PDF because the PDF does not exist. Indeed, if I check the temp directory for LyX, all files are present but the PDF. I get no other warnings or errors from texi2dvi and cannot figure out why this happens. In case it helps, I can run example(Sweave) and then texi2dvi(Sweave-test-1.tex, pdf=TRUE) and the same thing happens. No PDF. Can someone help me figure out why texi2dvi fails to produce a PDF? A potential complication (as always) is that I am working in a non-Admin account on the machine. I can invoke Admin permissions to change things and had managed to get everything working before. Permissions may be an issue, but I have set full access to all the folders involved in this process (R, LyX, MiKTeX bins for example), and this got it working prior to updates. I am hoping that is not it. It seems like an issue with texi2dvi. Dave Hewitt Research Fishery Biologist USGS Western Fisheries Research Center Klamath Falls Field Station, Oregon http://profile.usgs.gov/dhewitt __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.