Perhaps this is just my ignorance speaking, but it seems counterintuitive to me to try to process a *.Rnw file by means of Rd2pdf which would appear to be designed to process *.Rd files.

I would have thought that "R CMD Sweave ..." would be the appropriate call. I find that

    R CMD Sweave --pdf <whatever>.Rnw

works for me.

cheers,

Rolf Turner

--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

On 04/07/16 23:42, Christian Hoffmann wrote:
Hi,

I have a *.Rnw which I can Sweave with no problem, but which cannot be
processed by  R CMD  Rd2pdf --no-clean --force.

Th latter stops with

creating vignettes ... ERROR
Error: processing vignette 'cwhmisc.Rnw' failed with diagnostics:
at cwhmisc.Rnw:31, could not find function "cformat"
Execution halted

Before dissecting my *.Rnw systematically , I wanted to ask, if  R CMD
Rd2pdf has changed since the last R version.

sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-apple-darwin10.8.0 (64-bit)
Running under: OS X 10.7.5 (Lion)

locale:
[1] C

attached base packages:
 [1] tools     stats4    splines   parallel  datasets
 [6] compiler  graphics  grDevices stats     grid
[11] utils     methods   base

other attached packages:
 [1] survival_2.38-3    spatial_7.3-11
......

Any ideas ?
C.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to