startup | R Documentation |
This function starts the API server.
startup(port = read_secret("api.port"))
port |
port number |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.