-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RSQLite compile error on Windows using GitHub Actions #513
Comments
Perhaps clear the GitHub Actions cache? Easiest by changing the cache key. |
(The cache for the installed R packages.) |
Thanks will give it a try and let you know. |
From review of my GitHub Action file, there is no caching for R packages on Windows (ref) Looking closer at the output from the failed run, I found this excerpt from the failure to install RSQLite: ** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: Error: package or namespace load failed for 'RSQLite':
ERROR: loading failed
* removing 'D:/a/_temp/Library/RSQLite'
.onLoad failed in loadNamespace() for 'RSQLite', details:
call: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
error: there is no package called 'cachem'
Error: Error: loading failed I then noticed a little further along in the output that - name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE, INSTALL_opts=c("--no-multiarch"))
remotes::install_cran("rcmdcheck")
shell: Rscript {0} So I'm unsure why the installs are not happening in the required order. |
Thanks for double-checking. I see the workflow is installing packages from source: https://github.com/OHDSI/CohortGenerator/actions/runs/9289700700/job/25616598401#step:11:1218 . Is there a specific reason for testing on R 4.2? What happens if you install cachem manually before running You could also consider pak, or moving altogether to the actions provided by https://github.com/r-lib/actions/ (which use pak under the hood). |
Hi - I'm testing on 4.2 since that's what we currently support for our collection of packages. As you probably saw from the GitHub Actions this does not appear to be an issue on the most recent release of R. I'll see if I can migrate to the newer actions that use pak and potentially install cachem ahead of installing the other dependencies. Thanks! |
Hi for now I've opted to install |
Hi - I'm hoping you can help me with an error I'm facing when running GitHub Actions on my project. This only appears to happen when using the latest Windows and R v4.2.3 & RTools 4.2. Please see the logs that start at: https://github.com/OHDSI/CohortGenerator/actions/runs/9289700700/job/25616598401#step:11:2554 and end: https://github.com/OHDSI/CohortGenerator/actions/runs/9289700700/job/25616598401#step:11:2979.
Please let me know if you need any further details from me. Thanks!
The text was updated successfully, but these errors were encountered: