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

Scott Kostyshak skostysh at princeton.edu
Fri Jul 19 08:54:30 CEST 2013


On Thu, Apr 4, 2013 at 2:06 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:
> 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)

I see the same behavior on 3.0.1 (pre-compiled binaries on Ubuntu
12.04 and 13.04).

> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=C                 LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

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

Did you? If not, please do (or tell me to if you don't have time). I
see nothing in News.Rd on trunk.

Scott


--
Scott Kostyshak
Economics PhD Candidate
Princeton University



More information about the R-devel mailing list