Package Management in Spotfire Enterprise Runtime for R
You can develop custom packages, or you can use one of the packages customized to use specifically with TERR and posted on the TERR Archive Network, or you can use one of the many packages developed and posted on the Comprehensive R Archive Network (CRAN).
- You can use TERR to develop packages to share with other R developers.
- You can install packages
directly on a
Spotfire Statistics Services
server using
install.packages()
from the engine on the server. - You can put the packages on
a
Spotfire Statistics Services
server using the Eclipse plugin designed to deploy packages to
Spotfire Statistics Services,
or you can put the packages on a
Spotfire Statistics Services
server using the spserverapi package function
administrationService.uploadPackageVersion
. (See its help for more information.) - You can use the functions in your custom packages or in CRAN packages in data functions developed for Spotfire analytics, and then share the Spotfire analytics with others.
See the Package Management for the Spotfire® Environment for more information.
Be sure you follow the recommended practices for maintaining package versions.
- Installation Options for Packages
Use the functioninstall.packages()
to install packages to use in TERR 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 TERR help topic forinstall.packages()
for more detail and examples. - Recommendations for Using R Securely
The R Consortium, of which Spotfire is a proud member, has provided a summary of "Best Practices for Using R Securely." - Manage your Packages when You Install a New Version of TERR
When a new version of TERR is released, you might want to install it to take advantage of the changes. You can run older and newer versions of TERR on the same computer, or you can uninstall the older version(s). In either case, you probably want to make sure any custom-created packages or packages downloaded from a repository are kept available to the TERR version(s) you are running.
- Installation Options for Packages
Use the functioninstall.packages()
to install packages to use in TERR 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 TERR help topic forinstall.packages()
for more detail and examples. - Recommendations for Using R Securely
The R Consortium, of which Spotfire is a proud member, has provided a summary of "Best Practices for Using R Securely." - Manage your Packages when You Install a New Version of TERR
When a new version of TERR is released, you might want to install it to take advantage of the changes. You can run older and newer versions of TERR on the same computer, or you can uninstall the older version(s). In either case, you probably want to make sure any custom-created packages or packages downloaded from a repository are kept available to the TERR version(s) you are running.
Parent topic: Technical Guide