from_import: from_import imports specific objects from a package

Description Usage Arguments Examples

View source: R/projects.R

Description

It attempts to mimic python's 'import ... from ...' construct

Usage

1
from_import(pkg, objs, as = NULL, .hidden = F)

Arguments

pkg

package name, a string

objs

a vector of obj names

as

aliases of the object in the current environment

.hidden

logical, import the hidden obj or not

Examples

1
2
from_import('dplyr', 'select', 'dselect')
from_import('AnnotationDbi', 'select', 'aselect')

gaoce/raddins documentation built on May 20, 2019, 1:51 p.m.