R Grid Libraries

Last published : Jul 27, 2026
Grid libraries with Services implemented in R must contain a top-level directory named R. This means the following Grid Library structure is used:
   /
   /grid-library.xml
   /R/
The R directory is required unless the Grid Library contains only R packages. All files ending in .R are sourced. The order that the R files are sourced is not guaranteed.
Grid libraries with R Services must depend on the rbridge-platform Grid Library. That dependency can be direct or indirect.
Grid Libraries can also contain R packages in non-source form. Packages root directory within the Grid Library is defined using the lib-path element.
The following is an example grid-library.xml with R packages:
<?xml version="1.0" encoding="UTF-8"?>
<grid-library os="win64">
    <grid-library-name>Rpscl-win64</grid-library-name>
    <grid-library-version>3.0.3</grid-library-version>
    <lib-path>
        <pathelement>library</pathelement>
    </lib-path>
    <dependency os="win64">
        <grid-library-name>rbridge-win64</grid-library-name>
    </dependency>
    <dependency os="win64">
        <grid-library-name>Rextras-win64</grid-library-name>
    </dependency>
</grid-library>