Description Usage Arguments Value Note See Also Examples
This function loads one or several R packages as silently as
possible (with warn/message = FALSE
) and it returns TRUE
only if all
packages are loaded successfully. If at least one loading fails, a short
message is printed, by default. For all packages that were not found, an
entry is recorded in .packages_to_install
in SciViews:TempEnv
, and that
list can be automatically used by Install()
.
1 2 3 4 5 6 7 8 9 |
... |
The name of one or several R packages to load (character strings). |
stop |
If |
message |
Do we display introductory message of the package? If a package displays such a message, there is often a good reason. So, it is not a good idea to disable it in interactive sessions. However, in other contexts, like in non-interactive use, inside an R Markdown document, etc., it is more convenient not to display it. |
warn.conflicts |
As for |
pos |
As for |
lib.loc |
As for |
verbose |
A logical indicating if additional diagnostic messages are printed. |
TRUE
if all packages are loaded correctly, FALSE
otherwise, with
a details
attribute indicating which package was loaded or not.
This function is designed to concisely and possibly quietly (with
warn = FALSE
) load packages and attach them to the search path. Also, on
the contrary to library()
, or require()
, it is not possible to use
unquoted names of the packages. This is cleaner, and avoids the contrived
work-around to pass name(s) of packages as a variable with an arguments
character.only = TRUE
!
If several packages are provided, they are loaded and attached in reverse order, so that the order in the search path is the same one as the order in the provided vector.
The library(help = ...)
version is not implemented here.
require()
, library()
, Install()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.