For versions 4.0.2 and lower:
Follow the steps below to add R packages and subsequently expect an increment in the SPK package version.
1). After you have installed the R packages that you want to add, find the SpotfireSPK.dcf in the file system.
2). Launch your text editor and edit the DCF file.
3). Change the first line to add or remove R packages to the Packages list.
Example:
Change the following line:
Packages: rpart
TO:
Packages: rpart, adagio
4). Save the file.
5). Go back to TERR for R console, build the SPK file using the buildSPK function. The package should be built with the version number incremented.
Example:
Packages: rpart, adagio
Built: TERR 2.7.0; 2014-10-10 14:06:00 EDT
BuiltName: TIBCO Enterprise Runtime for R Packages
BuiltId: F13B9A7E-783A-432a-8676-42FCD3022D70
BuiltVersion: 1.1.0.0
BuiltPackages: adagio (>=0.5.9),rpart (>=4.1-8)
For versions 4.1.0 and Higher:
If you create a DCF and want to assign a specific version number to it, run the buildSPK function and pass in the DCF argument, along with the argument version, setting it to the version you want. This argument is a character string or a numeric_version object containing four components (for example, version = "1.2.3.4").