From murdoch.duncan at gmail.com  Mon May 20 12:49:40 2013
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Mon, 20 May 2013 06:49:40 -0400
Subject: [Rd]
 =?windows-1252?q?R_CMD_check=3A_unknown_option_=91--outdir?=
 =?windows-1252?q?=3D=3DRCHECK=92?=
In-Reply-To: <5199FC24.4020000@gmail.com>
References: <CAEYvigJdjrJVO4DFo99Cca7MUHDqi+J2S+Yq4Ra-yUG0u-ddaA@mail.gmail.com>
	<5199FC24.4020000@gmail.com>
Message-ID: <5199FFC4.6070003@gmail.com>

On 13-05-20 6:34 AM, Duncan Murdoch wrote:
> On 13-05-20 6:05 AM, Matthieu Stigler wrote:
>> Dear R devel
>>
>> I am experiencing a problem using R CMD check. I tried to specify the
>> argument outdir, but get every time the error message:
>> Warning: unknown option ???--outdir==RCHECK???
>>
>> This happens both on R 2.15.2 Linux, as well as R 3.0.1 Windows, with
>> latest Rtools. Is it just that I am not passing the argument the right way,
>> or is there an issue with R CMD check?
>>
>> I tried to write the argument in many differents ways, but it always fails.
>> Standard way I tried is:
>> $ R CMD check --outdir="RCHECK"  pkg.tar.gz
>> Warning: unknown option ???--outdir=RCHECK'
>
> There are a couple of bugs here.  First, a simple typo: the code is
> looking for --output=RCHECK, not --outdir=RCHECK.  But if you use
> --output, you'll likely get an error saying you can't change directory
> to it.
>
> I'll take a look at both.

Sorry, only one bug, misleading help text.

The help text says

   -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)

but in fact DIR is the location where pkg.Rcheck will be placed.  It 
needs to exist in advance.  (This allows multiple packages to be checked 
in one command.  I've never used multiple checks at once, but it looks 
like something CRAN might need to do.)

I'll fix this by changing the help text, not the behaviour.

Duncan Murdoch



[Rd] =?windows-1252?q?R_CMD_check=3A_unknown_option_=91--outdir?= =?windows-1252?q?=3D=3DRCHECK=92?=
Duncan Murdoch