0

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:

https://github.com/AnoushiravanR/fars

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.

I will also leave my github package address:

https://github.com/AnoushiravanR/fars

Anoushiravan R
  • 21,622
  • 3
  • 18
  • 41
  • SO search is your friend for [the warning issue](https://stackoverflow.com/questions/41636047/a-warning-which-doesnt-show-up-in-the-r-cmd-check-results-1-warning-or-0-warni) – phiver Jan 02 '21 at 09:50
  • This looks more of an issue with travis. You might want to check with the gert maintainers. Or switch to github actions instead of travis. – phiver Jan 02 '21 at 09:54

1 Answers1

0

I added these lines to my .travis.yml and passed my travis build:

addons:
  apt:
    packages:
      - libgit2-dev
Dharman
  • 30,962
  • 25
  • 85
  • 135
Anoushiravan R
  • 21,622
  • 3
  • 18
  • 41