Learn R Programming

The gsl R package: a wrapper for the GSL C library

The gsl R package is a wrapper for the GSL C library (note capitalization). You can get further information on GSL at

https://www.gnu.org/software/gsl/

Installation from CRAN

You can install the released version of the gsl R package from CRAN by typing

install.packages("gsl")

library("gsl")

at the R command prompt.

Installation from source

Installing the gsl R package from source requires you to install the GSL C library first. About 80% of reports to me about gsl are due to people not understanding what this means.

Before reporting any "bugs", ensure that you can compile and run a simple test program such as the example program near the start of the GSL Reference Manual. It is not the purpose of this document to show people how to install GSL: for this, visit https://www.gnu.org/software/gsl/

You will need at least GSL version 2.5: using earlier versions generally gives errors such as

error: too few arguments to function 'gsl_sf_ellint_D_e'

About 20% of reports to me about gsl are due to an insufficient version of GSL.

Further information

For more detail on package structure and design philosophy, see the package vignette

vignette("gsl")

Copy Link

Version

Install

install.packages('gsl')

Monthly Downloads

45,620

Version

2.1-9

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Robin K S Hankin

Last Published

November 10th, 2025

Functions in gsl (2.1-9)

Fermi-Dirac

Fermi-Dirac functions
Error

Error functions
Legendre

Legendre functions
Gamma

gamma functions
Expint

exponential functions
Laguerre

Laguerre functions
Gegenbauer

Gegenbauer functions
Log

Log functions
Lambert

Lambert's W function
Hyperg

Hypergeometric functions
multimin

Function minimization
Synchrotron

Synchrotron functions
Psi

Psi (digamma) functions
Poly

Polynomials
Trig

Trig functions
Transport

Transport functions
Powint

Power functions
Rng

Random numbers generation
gsl-package

Wrappers for the Gnu Scientific Library
Zeta

Zeta functions
Misc

Argument processing and general info
gsl-deprecated

gsl-deprecated
Qrng

Quasi-random sequences
Clausen

Clausen functions
Airy

Airy functions
Elljac

Elliptic functions
Debye

Debye functions
Dilog

Dilog functions
Coupling

Coupling functions
Bessel

Bessel functions
Coulomb

Coulomb functions
Ellint

Elliptic functions
Dawson

Dawson functions