From hb at biostat.ucsf.edu  Thu Apr  4 20:06:59 2013
From: hb at biostat.ucsf.edu (Henrik Bengtsson)
Date: Thu, 4 Apr 2013 11:06:59 -0700
Subject: [Rd] R CMD check --outdir=path gives unknown option '--outdir'
Message-ID: <CAFDcVCQ_ZkQpC=f6CL2L_1sOMrU6nfP1nHE2BKme+ouGsmpVbA@mail.gmail.com>

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



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