I'm having trouble setting up github actions for my R package. I used usethis
to create two workflows (devtools 2.3.2
, usethis 1.6.3
), in particular:
usethis::use_github_action_check_standard()
usethis::use_github_action("test-coverage")
Both actions fail on Github, during the "Querying dependencies" step. It fails on all OS's with a similar error. On 'Ubuntu release' the error is:
Run install.packages('remotes')
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: /usr/local/bin/Rscript {0}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: https://packagemanager.rstudio.com/cran/__linux__/focal/latest
R_LIBS_USER: /home/runner/work/_temp/Library
TZ: UTC
_R_CHECK_SYSTEM_CLOCK_: FALSE
NOT_CRAN: true
Error: Error in library(devtools) : there is no package called ‘devtools’
Execution halted
Error: Process completed with exit code 1.
I have tried to find information on this error, but couldn't find anything.
I have not changed anything in the workflow files created by usethis
. I tried to change install.packages('remotes')
to install.packages('devtools')
in the worflow file, but that didn't seem to have any effect.
I don't know enough about GH actions to find the problem.