Installation options for packages
Use the function install.packages() to install packages to use in TIBCO Enterprise Runtime for R either in the stand-alone console, or in Spotfire. You can find packages in a variety of locations, including repositories, on reliable web sites, or stored locally. See the TIBCO Enterprise Runtime for R help topic for install.packages() for more detail and examples.
| Package Location | Description | Example |
|---|---|---|
| TERR Archive Network (TRAN) repository | The default location, https://tran.tibco.com, for installing packages using install.packages(). Used for packages that have been customized to work specifically with TERR. Requires no further arguments. |
# install rJava package from TRAN:
install.packages("rJava")
|
| Comprehensive R Archive Network (CRAN) repository | The secondary location for installing packages using install.packages(). Requires no further arguments. |
# install rpart package from CRAN:
install.packages("survival")
|
| Locally-available packages | If a trusted source gives you a package as a zip archive, you can put in on your computer and install it using install.packages(). |
# install local newtree package
# from a zip file in the working directory:
install.packages("newtree_1.2.zip")
|
| Trusted URL | If you are given a URL that contains a package you might want to use, and you trust the URL, you can pass the URL as the only argument to install.packages() |
#download from a custom URL and install # a custom package URL <- "https://mypackageurl/mypackage") install.packages(URL) |
Copyright © TIBCO Software Inc. All Rights Reserved.