Script R functions

This set of functions are available while a R Script is executing in a Script step in RPGM.

script.setProgress(show, progress, message)

Show or hide a progress bar in the script step:

show must be set to TRUE for showing the bar and to FALSE for hiding it

progress is a number between 0 and 100 representing the progression

message is a custom message to show below the progress bar

The code used to display the progress bar above was: script.setProgress(TRUE, 60, "Exporting to csv format...");Here is a complete example simulating a 10 seconds length script which updates the progress bar each two seconds: