buildServerSPK(listFile = "TERRPackagesServer.dcf", spkFile = "TERRPackagesServer.spk", repos = "", buildDir = NULL, force = FALSE, version = NULL, spkName = NULL)
listFile | a character string specifiying the path to a Debian Control File (.dcf) listing the packages to build in a Packages field. |
spkFile | a character string specifying the path the the Spotfire SPK package file to be built. If the file exists, it is overwritten. |
repos |
a character vector specifying repository URL. See install.packages for limitations on building packages.
|
buildDir |
a character vector specifying an existing directory.
|
force |
a logical flag.
|
version | a character string or a numeric_version object that specifies the full version of the SPK package file to build. This version number must contain four components (for example, 1.0.0.0). If NULL (the default), the automatic version number increment rules are applied. See Details for more information. |
versioned.filename | a logical flag. If TRUE, spkFile is modified to contain the version number of the built package (either before the .spk extension if it is present, or at the end of the filename). If FALSE, spkFile is used verbatim. |
spkName | a character string specifying a friendly name for the zip file containing the R packages inside the SPK package. This name is displayed in Deployments and Packages list after you upload your package to Spotfire Server (for example, spkName="Approved Corporate CRAN Packages"). If NULL, then a platform-appropriate default name is used. |
# Install and ensure packages work install.packages(c("plyr", "zoo"))# Generate a minimal list file writeLines("Packages: plyr,zoo", "ServerSPK.dcf")
# Pass the generated listFile to buildSPK and build the specified package library(SpotfireSPK) buildServerSPK("ServerSPK.dcf", "ServerSPK.spk")
# Look at the updated list file file.show("ServerSPK.dcf")