| 23 Mar 2023 |
jbedo | actually maybe you can build an R environment with nix (that contains renv) and use snapshot | 22:57:36 |
jbedo | snapshot(type='all') | 22:57:48 |
jbedo | i think that'll pick up all the R packages | 22:57:53 |
necrophcodr | I've tried that and it didn't really work, but maybe I've been doing that wrong. I'll give it another go. I'm facing an issue with renv as well where it seems that running R inside an area where renv is already initialized seems to ignore all R packages added with rWrapper.override | 22:58:37 |
necrophcodr | Heck I might also end up rolling my own solution that'll generate nix expressions for this instead, or generate an renv.lock from a nix expression. | 23:00:15 |
necrophcodr | I'd like to avoid doing that as it isn't as neat, but if R -e "renv::snapshot(type='all')" doesn't work, I might just end up going the long way around | 23:00:53 |