This function returns the names of all the namespace environments of the packages found
in the search()
path.
get_namespace_names()
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")
.