Takes file with RestRserve application, generates Rserve configuration and put it to a specified directory. Later application could be started with restrserve_start.
restrserve_deploy(file, dir = "RestRserveApplication",
configuration = restrserve_default_conf(), configuration_file = NULL,
pid_file = file.path(dir, "Rserve.pid"), start_from_snapshot = TRUE)file with user code. In order to deploy application user have to
creates instance of RestRserveApplication with a name RestRserveApp.
'character, path to the directory where to deploy application and configuration
character vector - names are Rserve configuration parameters and values are corresponding configuration entries
NULL or path to a file with Rserve configuration. If not NULL then
values of the configuration_file will be added after parameter values
from configuration argument above.
character, path to a file where to put PID after starting application (after restrserve_start call).
logical whether to use snapshot of the user code from to start application.
User supplied code from file will be copied to the dir.
Copy of the file will have a name current_app_snapshot.R.
If start_from_snapshot = TRUE (default) then application will be started using current_app_snapshot.R file.
If start_from_snapshot = FALSE then original file will be used.
TRUE invisibly if deployment was successful