Testing Packages Locally
After you have either created a package or downloaded a package from a repository, you can test the package functions by running the example files in the TERR engine. Then you can write your own scripts using the package functions, and test them using Spotfire Analyst.
Before you begin
Your Spotfire Analyst installation should be configured to use the local TERR engine. You can check this option from the Spotfire Analyst menu by clicking . In the Options dialog, click Data Functions, and make sure Use locally-installed TIBCO Enterprise Runtime for R engine is selected.
About this task
Procedure
Testing a package example
#install the package
install.packages("survival")
#load the package
library(survival)
#run the example
Surv(heart$start, heart$stop, heart$event)
Related concepts