Description Usage Arguments Value Note Examples
glibrary short for (get)library. The primary aim of this function is to make loading packages more transparent. Given that we know we want to load a given package, actually fetching it is a formality. glibrary skims past this formality to install the requested package.
1 2 |
... |
comma seperated package names |
lib.loc |
See |
quietly |
See |
warn.conflicts |
See |
pickmirror |
If TRUE, glibrary allows the user to select the mirror, otherwise it auto-selects on the basis of the country code |
countrycode |
This option is ignored and the first mirror with the substring "Cloud", e.g. the RStudio cloud, is selected. If no mirrors with that substring are identified, glibrary compares this value to results from getCRANmirrors() to select a mirror in the specified country. |
logical; TRUE if glibrary was a success, an error if a package failed to load
keep.source was an arguement to require that was deprecated in R 2.15
This warning Warning in install.packages: InternetOpenUrl failed: 'The operation timed out'
indicates that the randomly selected repository is not available. Check your internet connection. If your internet connection is fine, set pickmirror=TRUE and manually select an operational mirror.
1 | #glibrary(lattice,MASS) #not run to prevent needless dependency
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.