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

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jul 19 09:04:15 CEST 2013


So please follow the posting guide at 
http://www.r-project.org/posting-guide.html, to wit

'f you are using an old version of R and think it does not work 
properly, upgrade to the latest version and try that, before posting. If 
possible, try the current R-patched or R-devel version of R (see the FAQ 
for details), to see if the problem has already been addressed.'

It has been.


On 19/07/2013 07:54, Scott Kostyshak wrote:
> 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
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list