Developer tools

SPS is not only a framework to run interactive workflow and visualize data, but also a framework with a abundant developer tools for building Shiny apps, writing R markdowns, integrating R-HTML and general R utilities.

These developer toolkits are distributed in supporting packages. If you like some of the functionality from SPS and think installing the whole framework is too expensive (time consuming), cherry-pick the functionality you want in following categories:

  • spsCpmps: Shiny/Rmarkdown UI components, and Shiny server functions.
  • drawer: Shiny/Rmarkdown/HTML interactive image editing tool.
  • spsUtil: General R utilities, like pretty logging functions.


All these supporting packages are available on CRAN. We recommend to use the modern package manager {pak} to install packages.

if(!requireNamespace("pak", quietly = TRUE))
  install.packages("pak", repos = "")

Pick and install packages as your need



If you are on Linux, you need to install some system dependencies before R package installation. To figure out what system dependencies and command, run:

cat(paste("sudo", pak::pkg_system_requirements("spsComps")), sep = "\n")
sudo apt-get install -y make
sudo apt-get install -y libicu-dev
cat(paste("sudo", pak::pkg_system_requirements("drawer")), sep = "\n")
sudo apt-get install -y make
sudo apt-get install -y pandoc
sudo apt-get install -y libicu-dev
cat(paste("sudo", pak::pkg_system_requirements("spsUtil")), sep = "\n")
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y libicu-dev

We are rendering this doc in Ubuntu. If your Linux distribution is different, commands above will be different.

Functions reference manual

In documents, we only highlight some important functions. Please read the reference manuals for details of every function.

Last modified 2021-12-15 : sps updates no_render (9924dd38)