Search code examples
rtravis-cir-package

Building r packages


I have recently built and R package for my online course. However, when I run travis-ci build, it grounds to a halt due to the following error:

ERROR: configuration failed for package ‘gert’

* removing ‘/home/travis/R/Library/gert’

Error in i.p(...) : 

  (converted from warning) installation of package ‘gert’ had non-zero exit status

Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p

Execution halted

The command "Rscript -e 'deps <- remotes::dev_package_deps(dependencies = NA);remotes::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .

Your build has been stopped.

I would appreciate it if you could give me some hints on how to pass this test. I also run R cmd check on my package and the only warning I receive is the following:

WARNING
  'qpdf' is needed for checks on size reduction of PDFs

However, this check in also halted.


Solution

  • I think \code{\link[dplyr:filter]} should be \code{\link[dplyr]{filter}}, see https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Cross_002dreferences . That should (?) solve some of your problems, don't know if it will solve all of them.