similar to: patchDVI: how to pass encoding of the .Rnw file?

Displaying 20 results from an estimated 200 matches similar to: "patchDVI: how to pass encoding of the .Rnw file?"

2012 Aug 16
0
How to call patchDVI::SweavePDF on an .Rnw which is not the master file?
Dear expeRts, I have a master file master.tex containing the preamble and which inputs (via \input{chapter01}, \input{chapter02}, ...) chapters. The chapters are .Rnw files. My goal is to use patchDVI::SweavePDF to compile the chapters (say, chapter.Rnw) individually (each chapter starts with sourcing Sweave preliminary settings). The first problem is the following. If I execute (in the shell)
2008 Aug 05
0
patchDVI update: SyncTex support
A while ago I wrote a package called patchDVI, that allowed "reverse-search" from the YAP .dvi previewer (or others) to jump directly to the .Rnw source of an Sweave document. Recently support for reverse search has been integrated into pdflatex (through SyncTex). There aren't many PDF previewers on Windows that support this (only an unreleased version of SumatraPDF, as far as
2011 Mar 26
1
Sweave and Textwrangler
Hi, I am trying to get TextWrangler to work with LaTeX and Sweave. Ideally I would call a script from TextWrangler that would run Sweave on a document, then LaTeX (using SyncTeX), and finally open the corresponding pdf in Skim. Of course I don't always need to run Sweave and would be looking for the option of LaTeX -> Open. I found this http://www.xs4all.nl/~msneep/latex/ but it
2013 Mar 13
0
sync+Rnw+TeXShop, again
Hi All -- I'm not sure this is the natural place for this question, but this list is the place with the best Sweave-TeXShop-sync discussion so far. My problem is that sync+Sweave+TeXShop works sometimes and not others, and it's not consistent. The failure, in which sync from PDF opens the .tex file instead of the .Rnw file, always comes after a code chunk. If I start from a simple
2013 Jan 09
3
Sweave, Texshop, and sync with included Rnw file
Hello everyone. I am in the process of writing a book in Latex with Texshop, on Mac. This book contains a lot of R code, hence the need to use Sweave. I was able to compile Rnw files, and to sync back and forth from the pdf to the source Rnw. My problem now is that the book is divided in Chapters, and every chapter is in its own Rnw file. I can compile them from the main one (book.Rnw) using the
2002 Oct 10
3
Sweave (PR#2142)
In the 'RWeaveLatexSetup' function in the 'tools' package in R 1.6.0 , the code below does not work (pdflatex can't find 'Sweave.sty'): if (stylepath) styfile <- file.path(R.home(), "share", "texmf", "Sweave") else styfile <- "Sweave" In R 1.5.1, that was: if(stylepath) styfile <-
2004 Mar 30
2
Sweave and graphic output locations
Hello, I'm using R1.8.1 on windows 2000 and version 1.8.1 of the tools package. I am attempting to have Sweave write files to a different directory via: testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "tools") ## create a LaTeX file Sweave( testfile, output = "C:/temp/Sweave-test-1.tex",
2015 Nov 05
2
PDFs and SVGs containing rasterGrobs don't display correctly in some other software
I've just been trying to post-process some R-created heatmaps using Inkscape, but I can't get them to display correctly in that software. To reproduce: library(grid) r <- as.raster(matrix(runif(25), 5, 5)) pdf("test.pdf") grid.newpage() grid.raster(r, interpolate = FALSE) dev.off() This figure should be a five by five block of grey squares. This is what I see in the R GUI
2011 Jul 31
3
R 2.13.1 can't find package binaries on R-Forge
[Env: Win XP] I've just upgraded from R 2.12.2 to R 2.13.1. As part of my upgrade process, I typically install some in-development packages from R-Forge that are not on cran. But for the first time, it doesn't work. e.g., > install.packages("p3d", repos="http://R-Forge.R-project.org") trying URL
2008 Nov 29
3
including Sweave tangled code in '.Rnw' document
Hello List, I have been using Sweave for my homework this last quarter and have been very impressed at how much time and effort it saves me. I, however, have run up against a problem which I have not been able to solve using any of the Sweave/LaTeX tricks I know. I work through my homework one problem at a time, typesetting equations and writing R code, etc. and occasionally use
2009 Dec 17
2
Sweave Makefile issue
Dear R-specialists, I am trying to create a Makefile that will first convert all my .Rnw files into .tex files and then, that will run the LaTeX compiler to produce a pdf document. This issue has been discussed before. Hence, I've basically adapted a Makefile I found at http://n4.nabble.com/R-Sweave-R-and-complex-latex-projects-td810020.html#a810023 to make it compatible with a Windows
2008 Nov 18
1
Sweave
Dear All, I have both R 2.80 and Scientific Workplace 5.5 installed on my computer. I copied the following commands from HTML help provided by R: testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils") Sweave(testfile) I then compile Sweave-test-1.tex file using Scientific Workplace 5.5. Apparently, Scienfic Workplace 5.5 does not recognize
2007 Jan 13
2
Working with Sweave: inverse search?
The xdvi and yap DVI viewers allow inverse (aka reverse) search: you click on a location in the output display, and your editor moves to the corresponding location in the input file. yap at least also allows forward search, where you can have your editor tell it to location where a particular input line is displayed. I would like something like this to work in Sweave files. That is, I
2010 Nov 11
4
Troubleshooting sweave
Hi All, I've reproduced the example from Prof. Friedrich Leisch's webpage. When I write sweave("Example-1.Snw") OR sweave("Example-1.Rnw"), (yes, I renamed them). I get the following error: Writing to file example-1.tex Processing code chunks ... 1 : echo term verbatim Error: chunk 1 Error in library(ctest) : there is no package called 'ctest' Also while
2008 Jun 17
3
Sweave: problem with usepackage{C:/PROGRA~1/R/R-27~1.0/share/texmf/Sweave}
R users, I'm at a loss with a problem considering running .tex files produced by Sweave. When I run (R 2.7.0): --------------------------------------------------- #Taken from ?Sweave testfile <- system.file("Sweave", "Sweave-test-1.Rnw", package = "utils") ## enforce par(ask=FALSE) options(device.ask.default=FALSE) ## create a LaTeX file Sweave(testfile)
2007 Dec 01
1
Spellchecking Sweave documents
I have been using Aspell on a Linux system, but it doesn't understand the noweb chunks, which I'd rather it not spellcheck. I can run it on the generated .tex files, but then changes I make during the spellcheck will not be propagated back to the original source. Any suggestions on how to spellcheck Sweave documents? I see from a search that some people seem to be trying Flyspell on
2007 Apr 16
1
Sweave.sh shell script on CRAN
Dear developeRs, Martin Maechler has suggested that I resend this email to R-devel instead to R-packages for further comments and potential availability for Windows. ---------------------------------------------------------------------- I have uploaded my Sweave (bash) shell script on CRAN. It is available at http://cran.r-project.org/contrib/extra/scripts/ In short this script runs Sweave on
2011 Sep 30
2
Understanding the workflow between sweave, R and Latex
Let's say I have written the following tiny .Rnw file: _________________________________________ \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{Sweave} \usepackage{tikz} \usepackage{pgf} \begin{document} <<>>= sessionInfo() @ \end{document} _________________________________________ I then can go to R and use sweave to translate the .Rnw file into a .tex
2010 Dec 31
4
Sweave for "big" data analysis
Hi, Maybe I'm missing the point here...but let's suppose you are working with "large" data sets and using functions that take a significant amount of time to run in R. I woulnd't like to run these functions every time I call Sweave("myfile.Rnw") within R. What is the "common" practice to use Sweave in these situations. I would just run the function once,
2010 May 08
2
Sweave Feature Requests and Questions
Hi everyone, I would like to request the following features for Sweave: 1. The keep.source option, to respect empty lines in input. 2. The prefix.string option, to apply to all generated files, e.g. no Rplots.pdf. 3. That Sweave, doesn't change the graphics settings for the entire Latex Document. By default including a pdf image, should use it's actual size, rather than making it a fixed