[R-pkg-devel] Build fails at Travis CI
edd at debian.org
Sun Jun 5 17:54:49 CEST 2016
On 5 June 2016 at 10:38, Brian G. Peterson wrote:
| On 06/04/2016 03:13 PM, Daniel Marcelino wrote:
| > I wonder if anyone has experienced this issue with Travis CI. The
| > package I'm committing is just fine, it passes all the CRAN devel
| > checks, but fails at Travis building checks.
| > I realized that if I git commit without the "Collate" section, it
| > passes. However, I've no clue why.
| > I will appreciate any help on this.
| I have roxygen set to not Collate on all my development machines.
| Unless you're using S4 with complicated inheritance, you shouldn't need
| it, and it has caused me many headaches.
I always tell roxygen2 to not touch NAMESPACE or DESCRIPTION and to only deal
with Rd creation. Your mileage (and preferences) may of course differ.
In RStudio this is done via the preferences, on the commandline via something
like this which I keep as 'roxy.r' in the path:
# Simple helper script for roxygen2::roxygenize()
# Dirk Eddelbuettel, August 2013
# GPL-2 or later
## load roxygen
## check all command-line arguments (if any are given) for directory status
argv <- Filter(function(x) file.info(x)$is.dir, argv)
## loop over all argument, with fallback of the current directory, and
## call roxygenize() on the given directory with roclets="rd" set
sapply(ifelse(length(argv) > 0, argv, "."), FUN=roxygenize, roclets="rd")
Hope this helps, Dirk
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the R-package-devel