Description Usage Arguments Examples
Allow for simpler syntax in R. Loads packages from URL, potentially unzipping if necessary. By contrast to installr
, the URLs with parameters do not lead to problems.
1 |
pkg.name |
a character string. Optional. Name of Package, if known. Otherwise, the proceedure extracts this from the downloaded file. |
url |
a character string. A url. |
file.type |
character. Default |
install |
boolean. Default |
require.pkg |
boolean. Default |
force |
boolean. Defaut |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
install.from.url(url='http://domain.de/mypackage.zip?parameters=areok', file.type='zip');
install.from.url(url='http://domain.de/mypackage.gz?parameters=areok', file.type='gz');
install.from.url(url='http://domain.de/mypackage.gz?parameters=areok'); ## file type will be automatically detected
install.from.url(url='http://domain.de/mypackage?parameters=areok');
path <- install.from.url(url='http://domain.de/mypackage?parameters=areok', install=FALSE);
install.packages(pkgs=path, repos=NULL, type='source');
path <- install.from.url(url='http://domain.de/mypackage?parameters=areok', install=FALSE, pkg.name='mypackage', require.pkg=TRUE); ## tries require('mypackage') first, otherwise installs package afresh.
path <- install.from.url(url='http://domain.de/mypackage?parameters=areok', install=FALSE, require.pkg=TRUE, force=TRUE); ## forces a fresh installation of the package followed by a require(···) command (package name will be automatically detected).
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.