This function starts the API server.

startup(port = read_secret("api.port"))

Arguments

port

port number

Details

For cron on UNIX (Linux/macOS), use the following command:

Rscript -e "certeapi::startup()" &>> /path/api.log &

Use Rscript --vanilla -e to not load any user settings such as .Rprofile. The trailing & will make the script run in the background.