Description Usage Arguments Note Author(s)
Check, build, install package in a unified manner.
1 |
dir |
character, dirname of package(s). |
pkg |
character, basename of package |
Rsty |
full path name of 'Rd.sty' |
echoonly |
boolean, give echo of R CMD ..., more verbosely |
verbose |
boolean, give only echo of intended 'R CMD ...' |
sw |
switch, for alternatives, must be in 0:7, see note |
If the complete filepath of the package source is given in 'dir', 'pkg' must be *empty* !
"RCA" calls system("R CMD <options> path-to-package ") with options
sw
:
- 0 = (show sw alternatives),
- 1 = "Rd2pdf –no-clean –force",
- 2 = "check",
- 3 = "build –force –no-build-vignettes",
- 4 = "check –as-cran <pkg>.tar.gz",
- 5 = "check –as-cran",
- 6 = "install"
- 7 = "Sweave ", "/vignettes/",".Rnw"
The order 2 to 6 is suggested by https://cran.r-project.org/doc/manuals/r-release/R-exts.pdf.
sw = 1 shows errors present in the creation of the manual.
sw = 4 is provided for checking as required by CRAN policy.
'Rd.sty' must be provided in Rsty
, mine is in
/Users/hoffmannc/Rtest/Rd.sty.
Permissions for the vignette *.Rnw should be changed by system("chmod
u=rwx ...Rnw "), if necessary.
Christian W. Hoffmann <christian@echoffmann.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.