webServer.skeleton creates a folder with all configuration files and
directories that will be needed by the R web server.
the name of the directory to create
path where to create the directory
port that your application will be listening for
if TRUE and the directory already exists it will be overwritten
In the application directory,
webServer.skeleton will create the following
files and folders :
rserve.conf: Rserve configuration file. you should not edit it.
onStartWebServer.R: script that is executed when server starts. You should not edit it.
packages: list of the libraries to load.
routes: Routes for your application
lib: All R files in this folder will be sourced when the application starts. Useful to define functions or constants.
data: all data files in this folder will be loaded when the application starts. The data files have to be created with the "save" function.
R: This folder contains the R files that will be executed when the
application receives a query. Each script have to define at least a function
called "run". When the server receives a query like
http://myserver:8080/myRscript?x=1y=2", it will source the script "
and execute "
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.