As described in the downloading instructions, we provide ready-built installers for the libSBML R language interface that you can download from our GitHub 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.
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.