R Observatory
Search
install.packages("numDeriv")
CRAN checks, method
OKnotes on 2 of 13
CRAN 30-day downloads, method
751K−4.3% down on the 30 days before, the worse direction
Test coverage, method
90%of lines run by tests

Methods for calculating (usually) accurate numerical first and second order derivatives. Accurate calculations are done using 'Richardson''s' extrapolation or, when applicable, a complex step derivative is available. A simple difference method is also provided.

Full description

Methods for calculating (usually) accurate numerical first and second order derivatives. Accurate calculations are done using 'Richardson''s' extrapolation or, when applicable, a complex step derivative is available. A simple difference method is also provided. Simple difference is (usually) less accurate but is much quicker than 'Richardson''s' extrapolation and provides a useful cross-check. Methods are provided for real scalar and vector valued functions.

Maintainer
Paul Gilbert
Licence
GPL-2
Latest release
6 Jun 2019
First release
12 Apr 2006

Compare with another package

More details
Releases
8
Needs compilation
No
Needs R
>= 2.11.1
Task views (1)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' preferred citation:

citation("numDeriv")

R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA
Balamuta, J. J. (2026). R Observatory: Metrics for numDeriv version 2016.8-1.1 [Data set]. HJJB, LLC. Data release v2026-10-28. https://doi.org/10.5281/zenodo.21843040
About

From data release v2026-10-28, which the citation names so these numbers can be found later.

No warnings or errors. 2 of 13 check platforms have notes.

  • r-devel-linux-x86_64-debian-clang

    The unreleased R on Linux, x86_64, debian-clang

    Note

    Version checked
    2016.8-1.1
    Time taken
    33 s

    CRAN incoming feasibility: Note

    Maintainer: ‘Paul Gilbert <pgilbert.ttv9z@ncf.ca>’

    Full output

  • r-devel-linux-x86_64-debian-gcc

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    2016.8-1.1
    Time taken
    27 s

    CRAN incoming feasibility: Note

    Maintainer: ‘Paul Gilbert <pgilbert.ttv9z@ncf.ca>’

    Full output

  • r-devel-linux-x86_64-fedora-clang

    The unreleased R on Linux, x86_64, fedora-clang

    OK

    Version checked
    2016.8-1.1
    Time taken
    26 s
  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    OK

    Version checked
    2016.8-1.1
    Time taken
    29 s
  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    64 s
  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    OK

    Version checked
    2016.8-1.1
  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    44 s
  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    54 s
  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    30 s
  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    30 s
  • r-release-macos-arm64

    The current release of R on macOS, arm64

    OK

    Version checked
    2016.8-1.1
    Time taken
    16 s
  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    51 s
  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    OK

    Version checked
    2016.8-1.1
    Time taken
    59 s
  • 2 Note
  • 11 OK
Check output (1)

CRAN incoming feasibility, Note on 2 platforms

Maintainer: ‘Paul Gilbert <pgilbert.ttv9z@ncf.ca>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: c(person(given = "Paul",
                      family = "Gilbert",
                      role = c("aut", "cre"),
                      email = "pgilbert.ttv9z@ncf.ca"),
               person(given = "Ravi",
                      family = "Varadhan",
                      role = "aut"))
as necessary.

Check results on CRAN

Total downloads in the last 30 days
855,472−0.11% down on the 30 days before, the worse directionIt is the sum of 5 channels: CRAN, r2u, autoCRAN, conda-forge and c2d4u.

CRAN rank

77 of 26,530

CRAN

751,249 downloads in the last 30 days

Rank
77 of 26,530
Change
−4.3% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

20,437 downloads in the last 30 days

Rank
199 of 30,526
Change
+68.3% up on the 30 days before, the better direction

It is in the total. Take it out

autoCRAN

217 downloads in the last 30 days

Rank
176 of 29,212
Change
−5.7% down on the 30 days before, the worse direction

It is in the total. Take it out

conda-forge

83,497 downloads in the last 30 days

Rank
136 of 3,828
Change
+42.3% up on the 30 days before, the better direction

It is in the total. Take it out

c2d4u, no longer updated

72 downloads in the last 30 days

Rank
393 of 7,575
Change
+75.6% up on the 30 days before, the better direction

It is in the total. Take it out

Over time

Compare downloads

Needs
0
Dependent packages
395
Suggested by
115
Dependent packages (50 of 395)
PackageTitleDownloads in 30 days
distributionalVectorised Probability Distributions482,203
pbkrtestParametric Bootstrap, Kenward-Roger and Satterthwaite Based Methods for Test in Mixed Models337,108
ggdistVisualizations of Distributions and Uncertainty223,566
emmeansEstimated Marginal Means, aka Least-Squares Means170,859
lavaLatent Variable Models126,350
lmerTestTests in Linear Mixed Effects Models95,095
surveyAnalysis of Complex Survey Samples91,516
ordinalRegression Models for Ordinal Data87,545
lavaanLatent Variable Analysis86,241
bbmleTools for General Maximum Likelihood Estimation58,259
glmmTMBGeneralized Linear Mixed Models using Template Model Builder54,255
metaforMeta-Analysis Package for R51,545
RsolnpGeneral Non-Linear Optimization49,847
fixestFast Fixed-Effects Estimations49,408
rugarchUnivariate GARCH Models40,036
phytoolsPhylogenetic Tools for Comparative Biology (and Other Things)25,544
GauProGaussian Process Fitting25,472
rstpm2Smooth Survival Models, Including Generalized Survival Models24,193
flexsurvFlexible Parametric Survival and Multi-State Models24,002
mlogitMultinomial Logit Models18,654
optimxExpanded Replacement and Extension of the 'optim' Function18,130
snThe Skew-Normal and Related Distributions Such as the Skew-t and the SUN15,030
alabamaConstrained Nonlinear Optimization14,710
micsrMicroeconometrics with R14,593
brglm2Bias Reduction in Generalized Linear Models14,041
metsAnalysis of Multivariate Event Times12,974
copulaMultivariate Dependence with Copulas12,858
timeregFlexible Regression Models for Survival Data12,168
EpiStatistical Analysis in Epidemiology10,919
merDerivCase-Wise and Cluster-Wise Derivatives for Mixed Effects Models8,746
lcmmExtended Mixed Models Using Latent Classes and Latent Processes7,391
lbfgsb3cLimited Memory BFGS Minimizer with Bounds on Parameters with optim() 'C' Interface5,801
robmixglmRobust Generalized Linear Models (GLM) using Mixtures5,732
nimbleMCMC, Particle Filtering, and Programmable Hierarchical Modeling5,584
robustlmmRobust Linear Mixed Effects Models5,442
spaMMMixed-Effect Models, with or without Spatial Random Effects5,080
glmtoolboxSet of Tools to Data Analysis using Generalized Linear Models4,578
mltMost Likely Transformations4,326
mevModelling of Extreme Values4,235
CBPSCovariate Balancing Propensity Score4,216
metaplusRobust Meta-Analysis and Meta-Regression4,176
fdapaceFunctional Data Analysis and Empirical Dynamics3,858
mipfpMultidimensional Iterative Proportional Fitting and Alternative Models3,849
PROregPatient Reported Outcomes Regression Analysis3,502
MendelianRandomizationMendelian Randomization Package3,468
apolloTools for Choice Model Estimation and Application3,234
mhurdleMultiple Hurdle Tobit Models2,981
metaSEMMeta-Analysis using Structural Equation Modeling2,933
ROOPSDR Object Oriented Programming for Statistical Distribution2,881
bayesmetaBayesian Random-Effects Meta-Analysis and Meta-Regression2,721
Functions
8
Public exports
4
Lines of R code
377
Median complexity
4
Functions (8)
Size and composition

Lines by kind (1,617)

KindLinesShare
R code37723%
Tests64940%
Documentation51932%
Guides724%

Lines by language

LanguageLinesShare
R1,02664%
Rd51932%
Other725%

Languages are counted from file extensions.

Files
26
R functions
8
Object systems
S3: 4 methods
Complexity
Median
4
Mean
8
Highest
24
Median lines per function
20.5
About complexity

Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.

Call graph figures
R functions
8
Calls
3
Unconnected
4
Groups
1
Growth (8 releases)
Total lines by release
922 on 11 Apr 20061,617 on 6 Jun 2019
Release changes

The tests ran and coverage was measured.

Lines run by tests
89.7%
Expressions run by tests
89.1%
Exports named in tests
100%
Coverage by file (2)
Coverage run
Lines counted
223
Lines the tests ran
200
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
R scripts, 7 script files
Lines of tests
649
Test lines per line of code
1.72
Exports documented
100%
Arguments documented
100%
Return value documented
100%
Help pages with examples
66.7%
Examples run in checks
100%
Other documentation
README
No
Release notes file
Yes
Help pages
6
Lines of documentation
519

No repository on record

R releases
  • On CRAN
  • Release
VersionReleasedREvents
2016.8-1.1 current6 Jun 20193.6.0
2016.8-127 Aug 20163.3.1
2014.2-14 May 20153.2.0
2012.9-114 Oct 20122.15.1Licence: GPL-2
2012.3-127 Mar 20122.14.2Licence: GPL-2 | file LICENSE
2010.11-120 Jan 20112.12.1
2009.2-15 Feb 20092.8.1
2006.4-112 Apr 20062.2.1