As described in the downloading instructions, we provide ready-built installers for the libSBML R language interface that you can download from our SourceForge download page. If you use one of the installers, you do not need to do anything more to set up and use libSBML for R on your system.

Alternatively, you can also build the R bindings yourself following the compilation instructions. If you do, make sure to configure your CMake or GNU make build with the option to enable the libSBML R interface. Following the build, one more step is required to make your R installation find the libSBML interface: you must invoke a command in R, supplying it with the path to this archive file. You can do this in one of two ways: either using the R graphical interface, or a shell command.

- Using the R GUI: In the R menu "Packages" or "Packages & Data" (depending on your operating system), select the "Package Installer" item. You will be presented with an interface that lets you install a local binary package. Use the interface to navigate to the directory where you copied the libSBML archive file, and select the archive file for installation.
- Using a shell command: Suppose that the path to the libSBML R archive on your computer is archive. Execute the following command in a terminal/shell window (note: not in the R command line interpreter!):

      R CMD INSTALL archive

  In the command above, `R` is the executable for the command-line version of R; we assume it is accessible from your shell's command line, but if it is not accessible by simply typing `R`, you may need to supply the full path to `R`.

From this point forward, you should be able to call on libSBML functions from within your copy of R. You can test whether the installation was successful by trying the following command in R:

    library('libSBML')

If R does not report an error when you execute this command, then the libSBML R interface is probably installed correctly.