Skip to content

Deriv

Symbolic Differentiation

v4.2.0 · Jun 20, 2025 · GPL (>= 3)

Description

R-based solution for symbolic differentiation. It admits user-defined function as well as function substitution in arguments of functions to be differentiated. Some symbolic simplification is part of the work.

Downloads

CRAN

259.1K

Last 30 days

210th

928.5K

Last 90 days

3.5M

Last year

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

r2u CRAN

11.9K

Last 30 days

18.3K

Last 90 days

37.9K

Last year

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

autoCRAN

4

Last 7 days

12

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

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 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

2,936

Files

16

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,975 (67.3%)Tests 500 (17%)Docs 461 (15.7%)

API

Exported functions

7

Internal functions

27

Testing & CI

Has tests

Yes

Test-to-code ratio

0.25

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

25

First release

2014-12-23

Latest release

2025-06-20

Avg cadence

77 days

Cold removal rate

100%

Dep drift

1

LOC over versions

v1.0: 669 LOCv2.0: 1,350 LOCv3.0: 1,873 LOCv3.2: 1,987 LOCv3.4: 2,051 LOCv3.5.4: 2,098 LOCv3.5.6: 2,191 LOCv3.6.0: 2,259 LOCv3.6.1: 2,269 LOCv3.7.0: 2,351 LOCv3.8.0: 2,448 LOCv3.8.1: 2,462 LOCv3.8.2: 2,471 LOCv3.8.3: 2,473 LOCv3.8.4: 2,481 LOCv3.8.5: 2,487 LOCv3.9.0: 2,490 LOCv4.0: 2,680 LOCv4.0.1: 2,688 LOCv4.1.0: 2,798 LOCv4.1.1: 2,804 LOCv4.1.2: 2,804 LOCv4.1.3: 2,817 LOCv4.1.6: 2,857 LOCv4.2.0: 2,936 LOC

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

Reverse Dependencies (33)

depends

Dependency Network

Dependencies Reverse dependencies ordinalCont OEFPIL PFIM RGCCA RiskMap Sim.DiffProc THREC apollo cccrm ctsem ctsmTMB curesurv deltapif doBy emaxnls +18 more reverse deps Deriv

Version History

26 tracked
new 4.2.0 Mar 10, 2026
updated 4.2.0 ← 4.1.6 diff Jun 19, 2025
updated 4.1.6 ← 4.1.3 diff Sep 12, 2024
updated 4.1.3 ← 4.1.2 diff Feb 23, 2021
updated 4.1.2 ← 4.1.1 diff Dec 9, 2020
updated 4.1.1 ← 4.1.0 diff Oct 25, 2020
updated 4.1.0 ← 4.0.1 diff Oct 1, 2020
updated 4.0.1 ← 4.0 diff Aug 24, 2020
updated 4.0 ← 3.9.0 diff Dec 9, 2019
updated 3.9.0 ← 3.8.5 diff Sep 19, 2019
updated 3.8.5 ← 3.8.4 diff Jun 10, 2018
updated 3.8.4 ← 3.8.3 diff Feb 14, 2018
updated 3.8.3 ← 3.8.2 diff Nov 21, 2017
updated 3.8.2 ← 3.8.1 diff Oct 16, 2017
updated 3.8.1 ← 3.8.0 diff Jun 14, 2017