Description Usage Arguments Examples
Loads packages. If not available, then an install attempt will be carried out.
1 | load.packages(mode=STRING, package=STRING/s, url=STRING/s, mirror=INT, force=BOOL, dependencies=BOOL/STRINGS, quietly=BOOL, stop.on.error=BOOL, lib=STRING, file.type=STRING, version=STRING)
|
mode |
one of |
package |
a vector of strings. |
url |
a vector of strings. Either |
mirror |
an integer between 0 and (currently) 94. If not set, will ask for user input, upon the first time that CRAN-sources are loaded. |
file.type |
an optional string, e.g. |
lib |
an optional string, the Git-repository name. |
dependencies |
either |
force |
if set |
quietly |
boolean value to control the verbosity of installers. |
stop.on.error |
a boolean value (default |
version |
a string for package versioning. Useful only under |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
load.packages(mirror=53, package='tidyverse', force=TRUE);
load.packages(mirror=53, package=c('tidyverse', 'Matrix'), stop.on.error=TRUE, force=TRUE);
load.packages(mirror=53, package=c('tidyverse', 'Motrix', 'cowplot'), stop.on.error=TRUE, force=TRUE); # this will stop!
load.packages(mode='github', package=c('RLogik/clusterby', 'RLogik/rbettersyntax'), dependencies=TRUE);
load.packages(mode='github', url='https://github.com/RLogik/clusterby/archive/master.zip', file.type='zip', force=TRUE, dependencies=FALSE);
## require('clusterby') will be tried first, then potentially an install, then a require.
load.packages(mode='github', package='clusterby', url='https://github.com/RLogik/clusterby/archive/master.zip', file.type='zip', dependencies=TRUE);
## End(Not run);
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.