[Rd] R CMD check --outdir=path gives unknown option '--outdir'

Henrik Bengtsson hb at biostat.ucsf.edu
Thu Apr 4 20:06:59 CEST 2013


For 'R CMD check', it appears that option '--outdir' is not recognized
and generates warning "unknown option '--outdir'". R CMD check --help
says:

Usage: R CMD check [options] pkgs
[...]
Options:
[...]
  -o, --outdir=DIR      directory used for logfiles, R output, etc.
                        (default is 'pkg.Rcheck' in current directory,
                        where 'pkg' is the name of the package checked)

Example:

mkdir foo

# Check output is written to foo/
R CMD check -o foo pkg_0.1.tar.gz

# Option is ignored and check output is written to bar.Rcheck/
R CMD check --outdir=foo pkg_0.1.tar.gz
Warning: unknown option '--outdir=foo'

# Also tried with:
R CMD check --outdir foo pkg_0.1.tar.gz
Warning: unknown option '--outdir'

R CMD check -outdir=foo pkg_0.1.tar.gz
Warning: unknown option '-outdir=foo'

R CMD check -outdir foo pkg_0.1.tar.gz
Warning: unknown option '-outdir'

I get this with:

> sessionInfo()
R version 3.0.0 (2013-04-03)
Platform: x86_64-w64-mingw32/x64 (64-bit)

> sessionInfo()
R Under development (unstable) (2013-04-02 r62479)
Platform: x86_64-w64-mingw32/x64 (64-bit)

> sessionInfo()
R version 2.15.3 (2013-03-01)
Platform: x86_64-unknown-linux-gnu (64-bit)


Should I report this to http://bugs.r-project.org/?

/Henrik



More information about the R-devel mailing list