[Rd] Creating vignette pdf on Windows
Gabor Grothendieck
ggrothendieck at myway.com
Sat Nov 20 04:01:49 CET 2004
On page 11 of the Extensions manual it says that "R CMD build will
automatically create PDF versions of the vignettes for distribution"
however, I have not been successful on Windows 2.0.1 beta.
I tried creating a simple package by entering the code in
the ?package.skeleton example then adding the Rnw file from
the utils package to AnExample\inst\doc but when I ran
R CMD build
it did not seem to create a tex or pdf file. What am I
doing wrong?
... In R
R> f <- function(x,y) x+y
R> g <- function(x,y) x-y
R> d <- data.frame(a=1,b=2)
R> e <- rnorm(1000)
R> package.skeleton(list=c("f","g","d","e"), name="AnExample")
Creating directories ...
Creating DESCRIPTION ...
Creating READMEs ...
Saving functions and data ...
Making help files ...
Done.
Further steps are described in ./AnExample/README
At command line:
C:\>cd \Program Files\R\rw2001beta
C:\Program Files\R\rw2001beta>md AnExample\inst\doc
C:\Program Files\R\rw2001beta>copy library\utils\Sweave\*.Rnw
AnExample\inst\doc
library\utils\Sweave\Sweave-test-1.Rnw
1 file(s) copied.
C:\Program Files\R\rw2001beta>bin\R CMD build AnExample
* checking for file 'AnExample/DESCRIPTION' ... OK
* preparing 'AnExample':
* cleaning src
* creating vignettes ... OK
* removing junk files
* building 'AnExample_1.0.tar.gz'
C:\Program Files\R\rw2001beta>tar tzf AnExample_1.0.tar.gz
AnExample/
AnExample/data/
AnExample/data/d.rda
AnExample/data/e.rda
AnExample/DESCRIPTION
AnExample/inst/
AnExample/inst/doc/
AnExample/inst/doc/Rplots.ps
AnExample/inst/doc/Sweave-test-1.Rnw
AnExample/man/
AnExample/man/d.Rd
AnExample/man/e.Rd
AnExample/man/f.Rd
AnExample/man/g.Rd
AnExample/man/README
AnExample/R/
AnExample/R/f.R
AnExample/R/g.R
AnExample/README
AnExample/src/
AnExample/src/README
More information about the R-devel
mailing list