-
Notifications
You must be signed in to change notification settings - Fork 0
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
Upgrade package versions in renv
to resolve gcc errors during environment setup on Ubuntu
#50
Comments
Ooofta, this is annoying. I can't recreate locally bc I'm not an ubuntu user. Can you try a couple things first?
If you get the same error as you note, try this:
A fix I can think of is for me to re-generate a lock file after updating all the packages to their newest release. |
Hi @bmeluch - can you try checking out this branch: https://github.com/microbiomedata/nmdc_notebooks/tree/50-upgrade-package-versions-in-renv-to-resolve-gcc-errors-during-environment-setup-on-ubuntu and running |
Same error
This worked! which means that
this worked also! they all installed, no problems. Thank you. |
Describe the bug
Using Ubuntu 22.04
I'm trying to use renv to generate the reproducible environment to run the R notebooks in. When using
renv::restore()
to install the packages according torenv.lock
, I run into several packages that will not compile due to the same error:error: format not a string literal and no format arguments [-Werror=format-security]
tl;dr copious googling led me here: https://www.github.com/RcppCore/Rcpp/issues/1287
It looks like this issue has been fixed for many packages right around the time that
renv.lock
was last updated. I think that the RSPM repo gets new versions of packages a little slower than CRAN, so those packages in particular may not have picked up this fix.I'm new to using renv, and I didn't create the environment - is there an easy way to upgrade packages and recreate the renv files in a way that won't trip us up? @kheal
To Reproduce
Steps to reproduce the behavior:
renv::restore()
in notebook repo directoryExpected behavior
Packages should install into renv directory, using versions and repos specified by the lockfile.
The text was updated successfully, but these errors were encountered: