23 Mar 2023 |
necrophcodr | I've been trying to work on making developer shells for R projects, but I'm having some trouble with renv and openssl (specifically, but probably not exclusively). Is there a good way to setup developer shells where renv works with openssl, or perhaps even a good way to parse renv.lock files into NixOS R derivations? | 14:55:51 |
jbedo | Renv and nix have overlapping functionality, was there something you specifically needed renv for? | 21:03:13 |
jbedo | You might also be interested in https://github.com/TyberiusPrime/nixR if the framework in nixpkgs isn't sufficient for your use case | 21:15:20 |
necrophcodr | In reply to @jb:vk3.wtf Renv and nix have overlapping functionality, was there something you specifically needed renv for? Yes, R development on Windows. We do not work in a homogeneous environment | 22:08:44 |
necrophcodr | If everyone used NixOS I wouldn't even be asking either, we'd just use Nix flakes for the entire thing and have it be reproducible that way. Unfortunately that is not an option here with too much overlap between not only departments but also organisations. | 22:10:31 |
necrophcodr | Technically I suppose it could be possible to generate an renv.lock file from the nix development environment too. If that's a viable route, I am definitely not opposed to going the opposite direction. | 22:12:01 |
necrophcodr | In reply to @necrophcodr:matrix.org Technically I suppose it could be possible to generate an renv.lock file from the nix development environment too. If that's a viable route, I am definitely not opposed to going the opposite direction. (only I have no real idea how to do that) | 22:12:21 |
jbedo | you couldn't generate the lockfile entirely from an expression, as rPackages uses sh256 hashes and cran et al use md5 | 22:35:59 |
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 |