Skip to content

deSolve

Solvers for Initial Value Problems of Differential Equations ('ODE', 'DAE', 'DDE')

v1.42 · Mar 19, 2026 · GPL (>= 2)

Description

Functions that solve initial value problems of a system of first-order ordinary differential equations ('ODE'), of partial differential equations ('PDE'), of differential algebraic equations ('DAE'), and of delay differential equations. The functions provide an interface to the FORTRAN functions 'lsoda', 'lsodar', 'lsode', 'lsodes' of the 'ODEPACK' collection, to the FORTRAN functions 'dvode', 'zvode' and 'daspk' and a C-implementation of solvers of the 'Runge-Kutta' family with fixed or variable time steps. The package contains routines designed for solving 'ODEs' resulting from 1-D, 2-D and 3-D partial differential equations ('PDE') that have been converted to 'ODEs' by numerical differencing.

Downloads

CRAN

55.8K

Last 30 days

478th

189.4K

Last 90 days

708.5K

Last year

Trend: -15.1% (30d vs prior 30d)

r2u CRAN

682

Last 30 days

2.2K

Last 90 days

9.3K

Last year

Trend: +22.7% (30d vs prior 30d)

autoCRAN

22

Last 7 days

138

Last 30 days

7

All-time

⚠ Shared name: this package is also shipped elsewhere on openSUSE, so this count is not exclusive to autoCRAN (it is an upper bound).

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 27, 2026
WARNING 12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE Jun 14, 2026
WARNING r-release-linux-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘compiledCode.Rnw’ using Sweave
Error: processing vignette 'compiledCode.Rnw' failed with diagnostics:
Running 'texi2dvi' on 'compiledCode.tex' failed.
LaTeX errors:
! Undefined control sequenc
...[truncated]...
                 
!  ==> Fatal error occurred, no output PDF file produced!
--- failed re-building ‘deSolve.Rnw’

SUMMARY: processing the following files failed:
  ‘compiledCode.Rnw’ ‘deSolve.Rnw’

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 24, 2026
NOTE 13 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 16, 2026
NOTE r-devel-linux-x86_64-debian-gcc

compiled code

File ‘deSolve/libs/deSolve.so’:
  Found non-API call to R: ‘Rf_findVar’

Compiled code should not call non-API entry points in R.

See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

63,918

Files

193

Compiled share

68.9%

Has compiled src

Yes

Language breakdown

R 7,205 (11.3%)C/C++/src 44,013 (68.9%)Docs 8,545 (13.4%)Vignettes 4,155 (6.5%)

API

Exported functions

37

Internal functions

51

Recent export changes

v2.9.1+2 ode.3D, diagnostics  −2 rkAuto, rkFixed

Testing & CI

Has tests

No

Test-to-code ratio

0.00

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

85.2%

\dontrun example ratio

3.1%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

40%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.3.0

System requirements

C++ standard

License

GPL (>= 2)

License flags

SPDX valid, OSI approved

History

Versions

61

First release

2008-05-30

Latest release

2026-03-20

Avg cadence

55 days

Cold removal rate

100%

Dep drift

4

LOC over versions

v1.1: 35,605 LOCv2.7.1: 35,605 LOCv1.2: 35,640 LOCv1.2-1: 35,640 LOCv1.2-2: 35,672 LOCv2.7.2: 35,672 LOCv1.2-3: 36,807 LOCv2.9.0: 36,807 LOCv2.9.1: 38,830 LOCv1.3: 38,830 LOCv2.10.0: 45,052 LOCv1.5: 45,052 LOCv2.10.1: 45,100 LOCv1.5-1: 45,100 LOCv1.6: 46,205 LOCv1.7: 47,685 LOCv2.11.0: 47,685 LOCv1.8: 54,953 LOCv2.12.0: 54,956 LOCv1.8.1: 54,956 LOCv2.12.2: 55,769 LOCv1.9: 55,769 LOCv1.10: 58,118 LOCv2.13.1: 57,994 LOCv1.10-2: 57,994 LOCv1.10-3: 56,123 LOCv2.13.2: 56,123 LOCv1.10-4: 56,283 LOCv2.15.2: 56,283 LOCv1.10-5: 56,621 LOCv1.10-6: 56,632 LOCv3.0.1: 56,632 LOCv1.10-7: 62,718 LOCv3.0.2: 60,599 LOCv1.10-8: 60,599 LOCv1.10-9: 60,597 LOCv1.11: 61,150 LOCv1.12: 61,400 LOCv1.13: 61,537 LOCv1.14: 61,610 LOCv1.20: 62,945 LOCv1.21: 63,088 LOCv1.23: 63,547 LOCv1.24: 63,708 LOCv1.25: 63,696 LOCv1.27: 63,747 LOCv1.27.1: 63,753 LOCv1.28: 63,760 LOCv1.29: 63,766 LOCv1.30: 63,779 LOCv1.31: 63,780 LOCv1.32: 63,789 LOCv1.33: 63,795 LOCv1.34: 63,795 LOCv1.35: 63,913 LOCv1.36: 63,914 LOCv1.37: 63,911 LOCv1.38: 63,916 LOCv1.40: 63,916 LOCv1.41: 63,916 LOCv1.42: 63,918 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (135)

Dependency Network

Dependencies Reverse dependencies DIMORA DivE EpiModel EpiSimR FME GPoM ReacTran SoilR TDCor deBInfer ecolMod ecosim embryogrowth epimdr epimdr2 +120 more reverse deps deSolve

Version History

48 tracked
updated 1.42 ← 1.41 diff Mar 20, 2026
new 1.41 Mar 10, 2026
updated 1.41 ← 1.40 diff Feb 5, 2026
updated 1.40 ← 1.38 diff Nov 27, 2023
updated 1.38 ← 1.37 diff Sep 4, 2023
updated 1.37 ← 1.36 diff Aug 31, 2023
updated 1.36 ← 1.35 diff Jun 30, 2023
updated 1.35 ← 1.34 diff Mar 11, 2023
updated 1.34 ← 1.33 diff Oct 21, 2022
updated 1.33 ← 1.32 diff Jul 15, 2022
updated 1.32 ← 1.31 diff Apr 13, 2022
updated 1.31 ← 1.30 diff Mar 30, 2022
updated 1.30 ← 1.29 diff Oct 6, 2021
updated 1.29 ← 1.28 diff Sep 21, 2021
updated 1.28 ← 1.27.1 diff Mar 8, 2020