Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Integration with sysreqs #201

Closed
Robinlovelace opened this issue Mar 29, 2020 · 2 comments
Closed

Integration with sysreqs #201

Robinlovelace opened this issue Mar 29, 2020 · 2 comments

Comments

@Robinlovelace
Copy link

I've been playing with the sysreqs package and have found it can be used to auto-install dependencies. I imagine you already knew this. Reprex from bash below FYI:

sudo apt install $(r -e 'cat(paste(sysreqs::sysreqs(desc = system.file(package = "tmap", "DESCRIPTION"), platform = "linux-x86_64-ubuntu-gcc"), collapse = " "))')
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'git' instead of 'git-core'
Note, selecting 'libnode-dev' instead of 'libv8-dev'
...

Context: comes from discussions with @eddelbuettel and r-hub/sysreqs#17

@cboettig
Copy link
Member

Thanks @Robinlovelace ! It's definitely a cool package, @nuest has done some cool work with sysreqs + Docker in https://github.com/o2r-project/containerit as well.

I'm still not sure the best way to integrate this into our stacks though (e.g. you still have to opt in to allowing users to even have sudo privileges in the rocker-versioned containers). That's probably okay though at least for instances that are used as a single user environment anyway....

We could probably be making better use of it in the Dockerfiles themselves, though manually installing the apt dependencies may still be more robust. And of course sysreqs is still not a complete solution for system requirements, since it does not really address version issues that may require us to add a PPA or something (i.e. especially on the spatial stack as you know better than me!)

Definitely worth us thinking more about all the same. Suggestions on kinds of integration one might want to see (e,g. more user-facing or developer / Dockerfile level) welcome.

@eitsupi
Copy link
Member

eitsupi commented Feb 26, 2022

It doesn't look like we'll be doing this anytime soon, so I close it.
If you want to use a similar solution, consider using rocker/r-bspm.

@eitsupi eitsupi closed this as completed Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants