Skip to content

nlsr

Functions for Nonlinear Least Squares Solutions - Updated 2022

v2026.4.29 · May 1, 2026 · GPL-2

Description

Provides tools for working with nonlinear least squares problems. For the estimation of models reliable and robust tools than nls(), where the the Gauss-Newton method frequently stops with 'singular gradient' messages. This is accomplished by using, where possible, analytic derivatives to compute the matrix of derivatives and a stabilization of the solution of the estimation equations. Tools for approximate or externally supplied derivative matrices are included. Bounds and masks on parameters are handled properly.

Downloads

CRAN

883

Last 30 days

3894th

2.3K

Last 90 days

10.1K

Last year

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

r2u CRAN

9

Last 30 days

60

Last 90 days

162

Last year

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

autoCRAN

8

Last 7 days

19

Last 30 days

0

All-time

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

c2d4u legacy CRAN

9

Last 30 days

25

Last 90 days

35

Last year

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

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 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-oldrel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'FixedParameters.Rmd' using rmarkdown
--- finished re-building 'FixedParameters.Rmd'

--- re-building 'Intro-to-nlsr.Rmd' using rmarkdown
! Package pdftex.def Error: File `fbf91f55cafdb64fbb1f21a7f07
...[truncated]...
ed re-building 'nlsr-derivs.Rmd'

--- re-building 'nlsr-devdoc.Rmd' using rmarkdown
--- finished re-building 'nlsr-devdoc.Rmd'

SUMMARY: processing the following file failed:
  'Intro-to-nlsr.Rmd'

Error: Vignette re-building failed.
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Line coverage

Expression

Tests / Examples

Functions

44 35 exported

Complexity

9.5 avg / 126 max

Call network

44 nodes / 20 edges

Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Compare versions

Code

Structure

Lines of code

15,657

Files

86

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,646 (10.5%)Tests 414 (2.6%)Docs 1,766 (11.3%)Vignettes 11,831 (75.6%)

API

Exported functions

39

Internal functions

10

Recent export changes

v2023.5.8+2 pnlslm, pnls  −2 pnlm0, pnls0
v2023.2.8+5 SSlogisJN, nlsr, nlsrSS +2 more  −1 rawres.nlsr

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

54.8%

\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

6

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.5

System requirements

C++ standard

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

13

First release

2017-02-13

Latest release

2026-05-01

Avg cadence

118 days

Cold removal rate

100%

Dep drift

0

LOC over versions

v2017.2.12: 8,067 LOCv2017.2.19: 8,142 LOCv2017.6.18: 8,141 LOCv2017.10.4: 7,913 LOCv2018.1.28: 7,922 LOCv2019.9.7: 16,348 LOCv2021.8.19: 8,732 LOCv2022.8.16: 15,776 LOCv2023.2.8: 11,269 LOCv2023.2.12: 11,282 LOCv2023.5.8: 15,644 LOCv2023.8.31: 15,647 LOCv2026.4.29: 15,657 LOC

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

Reverse Dependencies (3)

Dependency Network

Dependencies Reverse dependencies digest beezdemand genSEIR usl nlsr

Version History

14 tracked
updated 2026.4.29 ← 2023.8.31 diff May 1, 2026
new 2023.8.31 Mar 10, 2026
updated 2023.8.31 ← 2023.5.8 diff Sep 4, 2023
updated 2023.5.8 ← 2023.2.12 diff May 9, 2023
updated 2023.2.12 ← 2023.2.8 diff Feb 13, 2023
updated 2023.2.8 ← 2022.8.16 diff Feb 8, 2023
updated 2022.8.16 ← 2021.8.19 diff Aug 15, 2022
updated 2021.8.19 ← 2019.9.7 diff Aug 19, 2021
updated 2019.9.7 ← 2018.1.28 diff Sep 7, 2019
updated 2018.1.28 ← 2017.10.4 diff Jan 31, 2018
updated 2017.10.4 ← 2017.6.18 diff Oct 4, 2017
updated 2017.6.18 ← 2017.2.19 diff Jun 19, 2017
updated 2017.2.19 ← 2017.2.12 diff Feb 23, 2017
new 2017.2.12 Feb 12, 2017