Description Usage Arguments Value See Also
Like base require
, irequire
tries to
find and load a package, but in an interactive way, i.e.
offering the user to install it if not found.
1 2 3 4 |
package |
name of the package |
lib |
path to the directory (library) where the package is to be looked for and installed if agreed by the user. |
... |
extra arguments passed to |
load |
a logical that indicates if the package should be loaded, possibly after installation. |
msg |
message to display in case the package is not found when first trying to load/find it. This message is appended to the string “Package '<packagename>' is required”. |
quiet |
logical that indicates if loading a package should be done quietly
with |
prependLF |
logical that indicates if the message should start at a new line. |
ptype |
type of package: from CRAN-like repositories, Bioconductor, Bioconductor software, Bioconductor annotation.
Bioconductor packages are installed using |
autoinstall |
logical that indicates if missing packages should just be installed without asking with the user, which is the default in non-interactive sessions. |
TRUE
if the package was successfully loaded/found (installed),
FALSE
otherwise.
Other require: mrequire
, qlibrary
, qrequire
, require.quiet
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.