Skip to content

rclsp

A Modular Two-Step Convex Optimization Estimator for Ill-Posed Problems

v2.0.1 · Jun 11, 2026 · MIT + file LICENSE

Description

Convex Least Squares Programming (CLSP) is a two-step estimator for solving underdetermined, ill-posed, or structurally constrained least-squares problems. It combines pseudoinverse-based estimation with convex-programming correction methods inspired by Lasso, Ridge, and Elastic Net to ensure numerical stability, constraint enforcement, and interpretability. The package also provides numerical stability analysis and CLSP-specific diagnostics, including partial R^2, normalized RMSE (NRMSE), Monte Carlo t-tests for mean NRMSE, and condition-number-based confidence bands.

Downloads

CRAN

503

Last 30 days

7978th

1.6K

Last 90 days

5K

Last year

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

r2u CRAN

23

Last 30 days

60

Last 90 days

136

Last year

Trend: 0% (30d vs prior 30d)

autoCRAN

0

Last 7 days

7

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 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 18, 2026
ERROR 8 OK · 0 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Jun 10, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required and available but unsuitable version: ‘CVXR’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-devel-linux-x86_64-fedora-clang

package dependencies

Package required and available but unsuitable version: ‘CVXR’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-devel-linux-x86_64-fedora-gcc

package dependencies

Package required and available but unsuitable version: ‘CVXR’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
ERROR r-devel-windows-x86_64

package dependencies

Package required and available but unsuitable version: 'CVXR'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.
ERROR r-oldrel-windows-x86_64

package dependencies

Package required and available but unsuitable version: 'CVXR'

See section 'The DESCRIPTION file' in the 'Writing R Extensions'
manual.
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 17, 2026
ERROR 9 OK · 0 NOTE · 0 WARNING · 5 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Fail
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-fedora-gcc

tests

Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [5s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Fail
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed 
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-windows-x86_64

tests

Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rclsp)
  > 
  > test_check("rclsp")
  Saving _problems/test-clsp-42.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed 
...[truncated]...
) == 2L) as.matrix else as.vector)(y)
   10.         └─base::as.matrix.default(y)
   11.           └─base::array(...)
   12.             └─base::as.vector(data)
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted

Code

Structure

Lines of code

1,547

Files

14

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,054 (68.1%)Tests 64 (4.1%)Docs 429 (27.7%)

API

Exported functions

4

Internal functions

15

Testing & CI

Has tests

Yes

Test-to-code ratio

0.06

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

100%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

25%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.3

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2025-11-17

Latest release

2026-06-11

Avg cadence

19 days

Cold removal rate

Dep drift

1

LOC over versions

v0.1.0: 1,289 LOCv0.2.0: 1,446 LOCv0.3.0: 1,456 LOCv0.4.0: 1,458 LOCv0.5.0: 1,462 LOCv1.0.0: 1,547 LOCv1.1.0: 1,547 LOCv2.0.0: 1,547 LOCv2.0.1: 1,547 LOC

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

Reverse Dependencies (2)

imports

Dependency Network

Dependencies Reverse dependencies Matrix CVXR rlppinv rtmpinv rclsp

Version History

10 tracked
updated 2.0.1 ← 2.0.0 diff Jun 11, 2026
updated 2.0.0 ← 1.1.0 diff Jun 8, 2026
updated 1.1.0 ← 1.0.0 diff Jun 7, 2026
updated 1.0.0 ← 0.5.0 diff May 16, 2026
new 0.5.0 Mar 10, 2026
updated 0.5.0 ← 0.4.0 diff Mar 8, 2026
updated 0.4.0 ← 0.3.0 diff Feb 18, 2026
updated 0.3.0 ← 0.2.0 diff Jan 29, 2026
updated 0.2.0 ← 0.1.0 diff Nov 25, 2025
new 0.1.0 Nov 16, 2025