o2r-project / containerit

Package an R workspace and all dependencies as a Docker container
https://o2r.info/containerit/
GNU General Public License v3.0
290 stars 29 forks source link

Allow users to register bespoke system dependencies #145

Open nuest opened 5 years ago

nuest commented 5 years ago

The best option is sysreqs. If that does not work I see this option:

Ask users to create a PR based on a template for bespoke installation functions

containerit::bespoke_instructions <- list()
containerit::bespoke_instructions["myPkg"] <- list(Run(..), Run_shell(..))

Users could also register more complex instructions at runtime, e.g.

register_bespoke_system_deps(packageName = "sf", FUN = function() {...})

See unused function .install_sf_with_outdated_system_deps for an example that is no longer used/required.