packageEnv is a slight modification from
topenv, which returns the top environment,
which in the case of development packages is the
environment into which the source files are loaded by
load_all.
topns_name: the top namespace is is not
necessarily the namespace where topns_name is
effectively called. This is useful for packages that
define functions that need to access the calling
namespace, even from calls nested into calls to another
function from the same package – in which case
topenv would not give the desired environment.
topns returns the runtime top namespace, i.e. the
namespace of the top calling package, possibly skipping
the namespace where topns is effectively called.
This is useful for packages that define functions that
need to access the calling namespace, even from calls
nested into calls to another function from the same
package – in which case topenv would not give the
desired environment.
packageName returns the current package's name. It
was made internal from version 0.16, since the package
utils exported its own
packageName function in R-3.0.0.
str_ns formats a package environment/namespace for
log/info messages.
packagePath returns the current package's root
directory, which is its installation/loading directory in
the case of an installed package, or its source directory
served by devtools.
isPackageInstalled checks if a package is
installed.
as.package is enhanced version of
as.package, that is not exported
not to mask the original function. It could eventually be
incorporated into devtools itself. Extra arguments
in ... are passed to find.package.