new_env_chain: Creates the parent environment used by import

Description Usage Arguments Examples

View source: R/import.R

Description

This function makes importing possible by creating a chain of environments: (1) the depends environment, which contains all objects attached via calls to library or require. (2) the import environment, this environment has functions to override calls to the base library and require. (3) the local environment, which will be returned by import.

Usage

1

Arguments

from

a package on the search path that will be initial parent environment

Examples

1
env <- new_env_chain('package:importr')

machow/importr documentation built on May 21, 2019, 10:51 a.m.