Creating a Spotfire Analysis to Display Installed Packages

You can create a data function for a Spotfire analysis that displays a table of all packages installed and available to the TERR engine running in your TERR service.

Perform this task in an instance of Spotfire Analyst, and then save the resulting analysis to the Spotfire library on the server.

Procedure

  1. Open any analysis.
  2. From the menu, click Tools > Register Data Functions.
    The Register Data Functions dialog box is displayed.
  3. Provide a name, such as Installed Packages, and clear the Allow caching check box.
  4. In the Script text box, type the following function. packages <- installed.packages()
  5. Click the Output Parameters tab, and then click Add.
    The Output Parameter dialog box is displayed.
  6. For Result parameter name, type packages.
  7. Provide a Display name, such as Installed Packages.
  8. From the Type drop-down list box, select Table.
  9. Run the function, and in the resulting Edit Parameters dialog box, select the Refresh function automatically check box.
  10. In the Run location drop down list box, select Force Server.
  11. Click the Output tab, and for the Output handler, select Data table.
  12. Click OK and then save the data function to the library on the server.

Result

When you open the analysis from the library, the resulting table reports all of the packages currently available to the TERR service on this server.
installed packages

Related concepts