Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Problem

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?

Solution

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:

$REVODEPLOYR_HOME/rserve/RScripts/RevoScriptTools_1.0-1.tar.gz

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

/home/deployr-user/deployr/7.1.0/rserve/RScripts/RevoScriptTools_1.0-1.tar.gz

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:

??RevoScriptTools

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.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×