R-code is portable between any two environments if the following are true:

  • The user interface is the same—MS-Windows or character mode.
Note: If a procedure contains no code that writes to the screen, its r-code is portable across user interfaces. For example, this is typical of database schema trigger procedures.
  • The database type (the DataServer or combination of DataServers connected during compilation) is the same.
  • The r-code version is the same.

For more details about these requirements and how they affect r-code portability, see R-code Features and Functions.