module(section=NULL, first=T, help=NULL, unload=F)
TRUE,
module
attaches the data directory for the module section requested
before the system functions and data,
in position 2 of the search list;
otherwise, it attaches the section at the end of the search list.
help function to
get documentation on particular objects in the section.
TRUE, the module named by the
section argument is unloaded. This
operation ends up performing the equivalent of
detach to remove the
module's data directory from the search list. This should be used instead of
using
detach directly, as their behaviors may be slightly different.
module returns (invisibly) the position in the search list at which it
attached the data directory for the requested module.
If you called
module
to get
help on a module,
module
returns NULL.
module
will not attach the same module twice;
if the section is already attached it will return the
position at which it is attached.
module prints documentation and attaches or detaches a data directory.
If you give the
help argument, then
module prints information on
the contents of the section specified by
help.
Otherwise,
module attaches or detaches the data directory
for the specified module.
If
module is called with no arguments, it prints short descriptions for
all of the installed add-on modules.
module(help="spatial") # documentation on spatial module module(spatial) # load spatial module module(spatial, unload=T) # unload spatial module