Add custom parameters to my script


I can edit the scripts now, I see no way to add custom parameters to my script. The Script Execution Parameters pane always have the same two input fields “Quick Inputs” and “R objects” but the sample scripts that got installed with DeployR (like “DeployR – Hello World.R”) have all kinds of custom parameters in that pane with sliders, etc. How do I add those to my own scripts?


Assuming you are developing your R scripts in their preferred R IDE, like RStudio, you first need to install the RevoScriptTools package in their R IDE environment.

That R package archive can be found here:


So for example, on a Linux machine following a non-root install that path would look something like this:


In RStudio just click on the Packages tab in the bottom-right panel and add the package. Or the customer can install the package manually:

R CMD INSTALL RevoScriptTools_1.0-1.tar.gz

Once that package has been installed the you can start using the revoPackage() and revoInput() functions to define package/input dependencies for their scripts.

To view the help for the package just type:


The help introduces the package and details how to use the revoPackage() and revoInput() functions.

If you uploads a script using these functions into the Repository Manager then the top-right panel under the Test tab will render the desired input controls.

Artikel-id: 3104175 - Laatst bijgewerkt: 31 okt. 2015 - Revisie: 1