I'm writing an R package and running R CMD check on github actions. everything was passing fine until one commit which did not make any changes to any of the renv files or workflow files and passed R CMD check fine locally, but failed on gihtub. The error i am getting is
Error: Error in bootstrap(version, libpath) : failed to download renv ${VERSION}
(click below for the whole output)
These are the actions in question. I have tried adding env: RENV_VERSION: 0.17.3
to the workflow yaml file, but it's not worked. I'm not sure what broke this, or where to look next?
Click for whole run output
Run r-lib/actions/check-r-package@v2
2 with:
3 upload-snapshots: true
4 args: c("--no-manual", "--as-cran")
5 build_args: "--no-manual"
6 error-on: "warning"
7 check-dir: "check"
8 working-directory: .
9 upload-results: false
10 env:
11 GITHUB_PAT: ***
12 R_KEEP_PKG_SOURCE: yes
13 R_LIBS_USER: /home/runner/work/_temp/Library
14 TZ: UTC
15 R_CHECK_SYSTEM_CLOCK: FALSE
16 NOT_CRAN: true
17 RSPM: https://packagemanager.posit.co/cran/__linux__/jammy/latest
18 RENV_CONFIG_REPOS_OVERRIDE: https://packagemanager.posit.co/cran/__linux__/jammy/latest
19 RENV_PATHS_ROOT: /home/runner/work/_temp/renv
20Run ## --------------------------------------------------------------------
39Warning message:
40renv 0.17.3 was loaded from project library, but this project is configured to use renv ${VERSION}.
41Use renv::record("renv@0.17.3")
to record renv 0.17.3 in the lockfile.
42Use renv::restore(packages = "renv")
to install renv ${VERSION} into the project library.
43ββ R CMD build βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
44* checking for file β.../DESCRIPTIONβ ... OK
45* preparing βUMARfetchRβ:
46* checking DESCRIPTION meta-information ... OK
47* installing the package to build vignettes
48 -----------------------------------
49# Bootstrapping renv ${VERSION} ----------------------------------------------
50Error: Error in bootstrap(version, libpath) : failed to download renv ${VERSION}
51Calls: source ... eval.parent -> eval -> eval -> eval -> eval -> bootstrap
52Execution halted
53 -----------------------------------
54ERROR: package installation failed
55Error: Error in proc$get_built_file() : Build process failed
56Calls: ... build_package -> with_envvar -> force ->
57Execution halted
58Error: Process completed with exit code 1.
59Run ## --------------------------------------------------------------------
60 ## --------------------------------------------------------------------
61 echo ::group::Show testthat output
62 find check -name 'testthat.Rout*' -exec cat '{}' ; || true
63 echo ::endgroup::
64 shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
65 env:
66 GITHUB_PAT: ***
67 R_KEEP_PKG_SOURCE: yes
68 R_LIBS_USER: /home/runner/work/_temp/Library
69 TZ: UTC
70 R_CHECK_SYSTEM_CLOCK: FALSE
71 NOT_CRAN: true
72 RSPM: https://packagemanager.posit.co/cran/__linux__/jammy/latest
73 RENV_CONFIG_REPOS_OVERRIDE: https://packagemanager.posit.co/cran/__linux__/jammy/latest
74 RENV_PATHS_ROOT: /home/runner/work/_temp/renv
75 LOGNAME: runner
76Show testthat output
77Run actions/upload-artifact@v3
78 with:
79 name: Linux-rdevel-results
80 path: /home/runner/work/UMARfetchR/UMARfetchR/check
81 if-no-files-found: warn
82 env:
83 GITHUB_PAT: ***
84 R_KEEP_PKG_SOURCE: yes
85 R_LIBS_USER: /home/runner/work/_temp/Library
86 TZ: UTC
87 R_CHECK_SYSTEM_CLOCK: FALSE
88 NOT_CRAN: true
89 RSPM: https://packagemanager.posit.co/cran/__linux__/jammy/latest
90 RENV_CONFIG_REPOS_OVERRIDE: https://packagemanager.posit.co/cran/__linux__/jammy/latest
91 RENV_PATHS_ROOT: /home/runner/work/_temp/renv
92 LOGNAME: runner
93Warning: No files were found with the provided path: /home/runner/work/UMARfetchR/UMARfetchR/check. No artifacts will be uploaded.
edit: typos