From murdoch.duncan at gmail.com  Wed Jan 14 14:30:18 2015
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 14 Jan 2015 05:30:18 -0800
Subject: [Rd] R CMD check: "..." used in a situation where it does not
 exist
In-Reply-To: <CABdHhvHzJB=oxpaSq4fmww691hk5yfc9oteMsqRbhSCaASToUA@mail.gmail.com>
References: <CAP4zaHMeGiRLP=ZB9Yg=dOjZLS3J4BG8kqHD2=t1g8S3fQKnxg@mail.gmail.com>
	<CABdHhvHzJB=oxpaSq4fmww691hk5yfc9oteMsqRbhSCaASToUA@mail.gmail.com>
Message-ID: <54B66F6A.5060905@gmail.com>

On 14/01/2015 4:47 AM, Hadley Wickham wrote:
> I think this is bug in R CMD check code.  I get a similar error:
> 
> rule: possible error in paste0(...): ... used in a situation where it
>   does not exist
> 
> for the simple:
> 
> rule <- function(..., pad = "-") {
>   if (nargs() == 0) {
>     title <- ""
>   } else {
>     title <- paste0(...)
>   }
>   width <- getOption("width") - nchar(title) - 1
>   message(title, " ", paste(rep(pad, width, collapse = "")))
> }
> 
> where ... clearly does exist.
> 
> I skimmed the commits for the last couple of days - the most relevant
> would seem to be this one by Michael Lawrence:
> https://github.com/wch/r-source/commit/d3a42dabccb23462aa1e0a1edad00450f0a6131c
> (but I might've missed others - many of the commit messages are not
> terribly explanatory)

Yes, it's a temporary bug in R-devel, not a problem in Michal's code.

Duncan Murdoch



[Rd] R CMD check: "..." used in a situation where it does not exist
Duncan Murdoch