envir is a small R package with a handful of functions designed for managing R environments.

The main exported functions are:

Usage example: import_from(magrittr, `%<>%`, `%>%`) import_from(dplyr, "*") # all exported functions import_from("my_script.R", useful_function) See ?import_from for extended usage examples.


You can install the released version of envir from CRAN with:


Or install the development version with:

if (!requireNamespace("remotes", quietly = TRUE)) 

Related work

R has excellent support for managing environments already, but some of the defaults encourage usage patterns that don't scale well to larger code bases.

Other solutions developed for managing R environments:

Try the envir package in your browser

Any scripts or data that you put into this service are public.

envir documentation built on Sept. 22, 2022, 5:07 p.m.