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

22,447

Version

2.1-8

License

GPL-3

Issues

Pull Requests

Stars

Forks

Last Published

January 24th, 2023

Functions in gsl (2.1-8)

Bessel

Bessel functions
Log

Log functions
Dawson

Dawson functions
Legendre

Legendre functions
Expint

exponential functions
Poly

Polynomials
Error

Error functions
Laguerre

Laguerre functions
Powint

Power functions
Debye

Debye functions
Dilog

Dilog functions
Trig

Trig functions
Lambert

Lambert's W function
Transport

Transport functions
Synchrotron

Synchrotron functions
Ellint

Elliptic functions
Zeta

Zeta functions
Gamma

gamma functions
Fermi-Dirac

Fermi-Dirac functions
Rng

Random numbers generation
gsl-deprecated

gsl-deprecated
Elljac

Elliptic functions
Gegenbauer

Gegenbauer functions
Psi

Psi (digamma) functions
gsl-package

Wrappers for the Gnu Scientific Library
Qrng

Quasi-random sequences
Hyperg

Hypergeometric functions
multimin

Function minimization
Misc

Argument processing and general info
Airy

Airy functions
Clausen

Clausen functions
Coulomb

Coulomb functions
Coupling

Coupling functions