import::from/into now support importing .into
symbol
s, regardless of .character_only
value,
and NSE is never performed on this parameter. In other words, the
.into
parameter should now always be a regular variable,
and can be of type character
(indicating a named
environment) or environment
(indicating an unnamed
environment). Curly brackets {}
are no longer needed, and
are simply ignored if present.
import::from/here/into now have a new .S3
parameter,
setting it to TRUE
which allows automatic detection and
registration of S3 generics and methods. This is an initial experimental
implementation, and is disabled by default.
import::from/here/into now support importing hidden objects
(those with names prefixed by a period). Users should be aware that
importing objects with the same names as named function parameters may
cause issues (and this could happen as well with any new parameters that
may be added to the import
package in the future)
Minor patch to import fixes a bug when importing from a library
not defined in the libPaths
. The namespace was fixed to be
imported earlier in the function definition so that later functions that
do not use a lib.loc
parameter (such as
getNamespaceExports
) can successfully reference the
namespace.
Minor patch to import fixes a bug where function get
from namespaces other than package:base
can be incorrectly
substituted in make_import_call
. This fix also applies to
getExportedValue
, even though this function is less likely
to be masked.
Several documentation improvements.
.character_only
, that suppresses non-standard evaluation
and thus allows passing object names or locations in variables
(character strings)..all
and .except
, that allow the user to import all functions,
or all functions except a few, from a package or module..chdir
”, specifying whether the working directory is
changed before sourcing modules to import..directory
”,.into
” parameter is now only a shorthand for
.into = {environment()}..from
) was previously behind
the ellipsis, requiring the use of named parameters.import::
/ import:::
syntax.