Displaying 20 results from an estimated 516 matches for "rnw".
Did you mean:
raw
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 directive
\SweaveInput{chapter1.Rnw}
The problem stands in the fact that li...
2007 Dec 10
7
Sweave : change value in rnw file to generate multiple "single" reports ?
Hello,
I'm still trying to make the life of my colleagues easier. Nice, isn't it ?
At the moment, I'm looking for a way to generate multiple "single report".
In fact I have a .rnw file which send a query to a MySQL database
(rs<-dbSendQuery(con, statement="select * from treatdata where
name='Device1'")
But of course my colleagues have many devices and don't want to enter the
rnw file to change the name of the device.
Is there a way to pass argument...
2003 Apr 23
1
Setting up Xemacs + Sweave
Dear list,
I have tried to setup my Xemacs for use with Sweave, which I indend to learn.
I have followed the instructions in the Sweave FAQ, that is to say, I put
(defun Rnw-mode ()
(require 'ess-noweb)
(noweb-mode)
(if (fboundp 'R-mode)
(setq noweb-default-code-mode 'R-mode)))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Rnw-mode))
(setq refte...
2007 Jun 29
2
\include-mechanism in Sweave?
Dear HelpeRs,
I'm very fond of Sweave and I use it as often as possible. It'a a pity
I can't use it for larger projects or can I?
For instance suppose I have three files file1.rnw, file2.rnw and
file3.rnw with Sweave code. Working on file2.rnw I whould like to
exclude file1.rnw and file3.rnw temporarily and joining all of them
later. This amounts to a mechanism similar to using LaTeX's \include
command. *Is* there a way to achieve that?
Thank you in advance.
D. Tren...
2013 Sep 17
2
processing of /vignettes and /inst/doc
It is stated in R-exts that Sweave files (.Rnw) are either processed in
/vignettes or /inst/doc, not both. Furthermore, it is stated that external
manuals and other files in /inst/doc will be installed.
This behaviour has been used to deal with the situation where a package has
two "vignettes", one that is easily processed and one t...
2007 Apr 26
2
SweaveInput and absolute paths
...SweaveInput{} instruction?
I'd like to create some reusable "template modules" of Sweave code and
put them in a standard directory like
/Resources/Affymetrix
Then the corresponding file that uses one of these would include a
command like
\SweaveInput{/Resources/Affymetrix/libload.Rnw}
If I try that (in R 2.4.0 on either Windows or UNIX), however, I get an
error message to the following effect:
--------------------------------
Writing to file affyExample.tex
Processing code chunks ...
Error in SweaveReadFile(c(ifile, file), syntax) :
no Sweave file with name './/Resources...
2005 Feb 23
4
Sweave and \input or \include LaTeX commands
Hello!
I was just wondering if Sweave can work with \input or \include
LaTeX commands. So, is it aware of such a possible hierarchy in
documents. I would test that, but I don't have such a report
available at the moment.
I thought of that when I was writting shell script for Sweave
from command line and I have solved that part there.
--
Lep pozdrav / With regards,
Gregor GORJANC
2013 Aug 23
2
packages with Sweave and knitr vignettes?
...sible to include both Sweave and knitr vignettes in a single
package.
I'm wondering
if anyone has tried this and/or if there are some hidden gotchas putting
this into practice,
and concerned about creating problems with CRAN checks if I try this.
Consider two vignettes:
pkg/vignettes/vign1.Rnw, containing:
% !Rnw weave = Sweave
%\VignetteEngine{Sweave}
...
pkg/vignettes/vign2.Rnw, containing:
% !Rnw weave = knitr
%\VignetteEngine{knitr::knitr}
...
both are .Rnw files, distinguished only by \VignetteEngine. vign1.Rnw is
currently in my
package, and vign2.Rnw compiles OK outside it, usi...
2014 Aug 25
1
vignette index going AWOL
...stR? version ?0.8-0?
* checking CRAN incoming feasibility ... NOTE
Maintainer: ?Randall Pruim <rpruim at calvin.edu>?
Package has a VignetteBuilder field but no prebuilt vignette index.
NOTE: There was 1 note.
$ tar -tf fastR_0.8-0.tar.gz | grep inst/doc
fastR/inst/doc/
fastR/inst/doc/Errata.Rnw
fastR/inst/doc/Errata.pdf
fastR/inst/doc/Updates.R
fastR/inst/doc/Updates.Rnw
fastR/inst/doc/Updates.pdf
fastR/inst/doc/index.html
There is an index.html in the tar ball. And If I install the package from the tar ball, the index appears as it should in the package.
I would be happy with the aut...
2009 Oct 06
4
Text editors for Sweave (rnw) files
Hi fellow R-users,
Are there any text editors that recognize sweave (.rnw) files? I am running Windows Vista and in the past I used Tinn-R for R files but it (surprisingly) doesn't recognize rnw files and does not do any syntax highlighting for them.
Thanks in advance,
Greg
__________________________________________________________________
Make your browsin...
2010 May 20
2
Sweave and uttf-8 under Windows XP
Hi list,
I need to process a Rnw file and and a csv file (both are encoded in
UTF-8) under Windows XP (R Version 2.11.0, i386, mingw32).
I can source and run the Rnw file:
> Stangle("Bericht.Rnw")
Writing to file Bericht.R
> source(file("Bericht.R", encoding="UTF-8"))
which runs fine, but ru...
2012 Sep 20
2
Sweave - if \Sexpr{} than \SweaveInput{"my.Rnw"}
Depending on an R computation I would like to include an Sweave documents
in the main Sweave document.
How can I do it?
So I was thinking .... to use Latex features :
\newif\ifpaper
\ifpaper
\SweaveInput{"my1.Rnw"}
\else
\SweaveInput{"my2.Rnw"}
\fi
But how do I set paper to true or false given an \Sexpr ??
\papertrue % or
\paperfalse
Any ideas?
cheers
--
Witold Eryk Wolski
Triemlistrasse 155
8047 Zuerich
[[alternative HTML version deleted]]
2009 May 10
2
Vignettes with missing or empty \VignetteIndexEntry:
...istr-pareto"
[16] "probdistr-student"
See the information on INDEX files and package subdirectories in the
chapter 'Creating R packages' of the 'Writing R Extensions' manual.
The warning tells me \VignetteIndexEntry is missing however there is
one in probdistr-main.Rnw (Sweave file calling all other files via
\SweaveInput{probdistr-XXXXX}). Let us note this file is not listed in
the above files...
But the build is ok
* checking for file 'pkg/DESCRIPTION' ... OK
* preparing 'pkg':
* checking DESCRIPTION meta-information ... OK
* installing th...
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...
2010 Oct 25
1
Sweave and absolute escaped backslashed Windows paths in R 2.12.0
I've noticed a change in behavior in R 2.12.0 from 2.11.1 regarding the
treatment of absolute paths in the file argument of Sweave in a Windows
environment.
Consider the minimal Rnw file, attached and reproduced below my
signature in case .Rnw files get stripped. This file is stored on my
(Windows) computer in H:/My Documents. Using an absolute path with the
standard window's escaped backslahes path gives an error:
> Sweave("H:\\My Documents\\test.Rnw")...
2012 Sep 05
1
Cran package checks
...o use this as an indirect test, ie.
"if timings is 10 then this must be CRAN running".
My biggest time offender is in the vignettes. After multiple readings of the docs I
still can't quite figure out how to specify
- pdf files that should be in the vignettes index, but are not .Rnw source
- how to tell R which ones to redo, and which to just accept the pdf
- per the policy line "all source for pdf should be available", non-inclusion of the Rnw
file isn't an answer.
Again, is there another document I'm missing?
Terry T.
2012 Jan 24
1
Rnw file generated strange symbols in pdf file
Hello,
I found my Rnw file generated strange symbols in pdf file. For instance, on page 4 of the following file,
http://cran.r-project.org/web/packages/cts/vignettes/kf.pdf
you can see Belcher et~al on line 2, and Figure~1 on line 5. The symbol ~ should not appear in the pdf file although the symbol was in the origi...
2014 Apr 14
2
R 3.1.0: 'R CMD Sweave' deletes non tex files created upon batch mode exit
...f R CMD Sweave,
confirming your 'deletes non tex files created upon batch mode exit'
So this is not related to OSX only, but also a big problem
at least on other *nix descendent platforms, such as Linux.
In short, failure (no graphic produce in the example below) by
R CMD Sweave foo.Rnw
but all is fine with using Sweave(), as you Marc, noted, and hence with
Rscript -e 'Sweave("foo.Rnw")'
... and to answer your question:
No this was not intended and is probably one of the bigger /
most embarrassing bugs in a newly released version of R
in my view:
Bas...
2004 Apr 29
2
Sweave in makefile under Win XP
Hi all.
To automate the production of a document I want to have something like:
test.tex : test.Rnw
"Sweave("test.Rnw") "| R --no-restore --no-save
in a makefile.
This however gives an error as R states: Sweave("test.Rnw") : not found.
I use R-1.9.0pat (040424 I think) on Win XP.
Any suggestions, hints or plain help appreciated.
Steen Ladelund
[[alte...
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)
,----
| Rscript -e "patchDVI::SweavePDF('chapter.Rnw')...