Learn R Programming

envnames (version 0.4.1)

get_namespace_names: Return the names that can be used to load all the namespace environments in the search() list

Description

This function returns the names of all the namespace environments of the packages found in the search() path.

Usage

get_namespace_names()

Arguments

Value

Array containing the names of the namespace environments as values and the package names as names (in the form of e.g. "package:base"). The names of the namespace environments are the result of splitting the name in the search list by ":" and taking the second part of the string (e.g. "base" from "package:base" or "rstudio" from "tools:rstudio"). The idea is that this name gives the namespace enviroment when used as asNamespace(<name>) or getNamespace(<name>), as in e.g. asNamespace("base").