spsInit {systemPipeShiny} | R Documentation |
To run a SPS app, you need to first create a SPS project, a directory contains the required files.
spsInit( app_path = getwd(), project_name = glue::glue("SPS_{format(Sys.time(), '%Y%m%d')}"), database_name = "sps.db", overwrite = FALSE, change_wd = TRUE, verbose = FALSE, open_files = TRUE, colorful = TRUE )
app_path |
path, a directory where do you want to create this project, must exist. |
project_name |
Your project name, default is |
database_name |
deprecated in current version. project database name, recommend to use the default name: "sps.db". It is used to store app meta information. |
overwrite |
bool, overwrite the |
change_wd |
bool, when creation is done, change working directory into the project? |
verbose |
bool, do you want additional message? |
open_files |
bool, If |
colorful |
bool, should message from this function be colorful? |
Make sure you have write permission to app_path
.
The database in not used in current version.
creates the project folder
if(interactive()){ spsInit(change_wd = FALSE) }