RCA: Check, build, install package in a unified manner.

Description Usage Arguments Note Author(s)

Description

Check, build, install package in a unified manner.

Usage

1
  RCA(dir=getwd(),pkg, Rsty, sw=c(2, 5:7), echoonly=FALSE, verbose=TRUE)

Arguments

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

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.

Author(s)

Christian W. Hoffmann <christian@echoffmann.ch>


cwhmisc documentation built on May 1, 2019, 7:55 p.m.