Skip to content

R RPGM Functions

These functions are useful in every step of an RPGM app.



Adds a file to the list in the final end step. Path can be absolute or relative to your program directory.


Returns the latest version found in the latest app's project changelog entry. If no version exists, returns an empty string.


Returns TRUE if the app is executed on RPGM Server, FALSE otherwise.

rpgm.notification(type, message, duration = 5000)

Displays a notification in the bottom right corner of the screen. The notification lasts duration milliseconds and displays message. type can be:

  • "error" for a red message ;
  • "info" for a blue message ;
  • "success" for a green message.

  • In RPGM, opens a file in the OS with the default associated program.
  • In RPGM Server, depending on the file type, it will either open the file in a new browser tab or will download the file.


Returns an absolute path to a named filename in the output directory.


Returns an absolute path to a named filename in the program directory.


Plays a sound. Sound can be either "success" or "error".


Sets the next step of the sequence to the specified Step.

rpgm.sendEmail(to, subject, text = "", html = "", cc = "", bcc = "", attachments = list(), replyto = "")

RPGM Server only. Sends an email. to, subject are mandatory. Either text or html should be used (both is also possible). * to is a string to the recipient address ; * subject email subject ; * text plain text content of the email ; * html HTML content of the email ; * cc and bcc other addresses to send the email to ; * attachments a list() of files to include in the email. Each file is a list with filename and a path properties. For example: list(filename="report.pdf", path="rpgm.outputFile("doc.pdf") ; * replyto an email address to respond to.

rpgm.step(file, stepid)

Creates a Step object, used in a lot of GUI functions.


Returns a string with the email address of the user. On RPGM Server, it's the email associated to the user. On RPGM, it's the email of the connected user. If the user is not connected, it returns an empty string.


Returns the name of the current user. On RPGM Server, it's the name of the user as defined in its account settings. On RPGM, it's the Windows/Linux/MacOS username.


Returns a string containing the version of RPGM or RPGM Server.