• Dirk Eddelbuettel
Part of the Use R! book series (USE R, volume 64)


The RcppGSL package provides an easy-to-use interface between data structures from the GNU Scientific Library, or GSL for short, and R by building on facilities provided in the Rcpp package. The GSL is a well-known collection of numerical routines for scientific computing. It is particularly useful for C and C++ programs as it provides a standard C interface to a wide range of mathematical routines. The chapter provides an introduction to the vector and matrix types in RcppGSL, illustrates their use by revisiting the linear modeling example, discusses how to deploy the RcppGSL from another package and via inline, and closes with an extended application example.


Application Program Interface Head File Standard Template Library Numerical Library Matrix Template 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


  1. François R, Eddelbuettel D, Bates D (2012) RcppArmadillo: Rcpp integration for Armadillo templated linear algebra library. URL http://CRAN.R-Project.org/package=RcppArmadillo, R package version
  2. Galassi M, Davies J, Theiler J, Gough B, Jungman G, Alken P, Booth M, Rossi F (2010) GNU Scientific Library Reference Manual. 3rd edn, URL http://www.gnu.org/software/gsl, version 1.14. ISBN 0954612078
  3. Hankin RKS (2011) gsl: Wrapper for the Gnu Scientific Library. URL http://CRAN.R-Project.org/package=gsl, R package version 1.9–9
  4. Sanderson C (2010) Armadillo: An open source C++ algebra library for fast prototyping and computationally intensive experiments. Tech. rep., NICTA, URL http://arma.sf.net
  5. Sklyar O, Murdoch D, Smith M, Eddelbuettel D, François R (2012) inline: Inline C, C++, Fortran function calls from R. URL http://CRAN.R-Project.org/package=inline, R package version 0.3.10

Copyright information

© The Author 2013

Authors and Affiliations

  • Dirk Eddelbuettel
    • 1
  1. 1.River ForestIllinoisUSA

Personalised recommendations