Skip to content

CVXR

1.9.1

Disciplined Convex Optimization

36packages depend
206Kdownloads / year
40.2%test coverage
13/13checks pass

Overview

About
Maintained by Anqi FuFirst published 2017-11-2022 releasesCRAN page ↗GitHub ↗

An object-oriented modeling language for disciplined convex programming (DCP) as described in Fu, Narasimhan, and Boyd (2020, doi:10.18637/jss.v094.i14). It allows the user to formulate convex optimization problems in a natural way following mathematical convention and DCP rules. The system analyzes the problem, verifies its convexity, converts it into a canonical form, and hands it off to an appropriate solver to obtain the solution. This version uses the S7 object system for improved performance and maintainability.

Install

Health

CRAN checks
13OK
Slowest check: 9.8 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.17
40.2%
Coverage · measured lines
99%
Documentation · exports
11
Dependencies · direct
Check history
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-12
    11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-10
    10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 253 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
67%
Documented parameters
97%
Return-value docs
99%
References docs
0%

Downloads

206K
CRAN downloads in the past year
Rank #942 · ~564/day · ~17.2K/mo
Daily download trend is not available in this view yet.
13.2K30 days
50K90 days
206K1 year
Compare downloads with other packages →
Also on2.7K r2u12 autocran47.4K conda_forge86 c2d4u

Repository

Repository
218Stars
33Forks
2Open issues
0Open PRs
13Releases
992Commits
14Contributors
992 commits · Last activity 2026-06-26 · 0% stars, 30d

Stars over time

2025-05-11 · 2062026-07-07 · 218

Repository practices

Upstream repositoryBeta

3 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/cvxgrp/cvxr on 2026-07-19.

Continuous integration (1)
GitHub Actions
CRAN release process (1)
cran-comments.md
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.3.0
Imports (11)
LinkingTo (2)
Enhances (0)
none

Code & Tests

Code Composition
R 51,094 (83%)Rd 6,979 (11%)C++ 2,728 (4%)Vignettes 544 (1%)C 74 (0%)
Code characteristics
Object systems
S31S7178
Cyclomatic complexity
1.0 median / 68 max
Test cases
440 / 0.17 per code line

Test coverage

Line coverage

40%

Expression

41.4%

Tests / Examples

40.2% / 11% ex

Functions

2541 133 exported

Complexity

2.6 avg / 68 max

Call network

2541 nodes / 1493 edges

Loading call graph…

Lowest coverage

2541 functions
FunctionCycloCoverage
%<<% exp10%
as_cvxr_expr exp10%
available_solvers exp10%
backward exp110%
ceil_expr exp10%
condition_number exp10%

Datasets

Bundled datasets · 3
NameClassRows × ColsAlso ships in
cdiacdata.frame166 × 14
dspopdata.frame1,000 × 3
dssampdata.frame100 × 3

People & History

People (5)
Maintainer (1)
Author, Maintainer
Authors (4)
Author, Maintainer
Contributors (1)
Contributor
Listed in earlier versions (2)
no longer listed · 0.94-4 to 1.0-15
no longer listed · 1.0 to 1.0-15
Package Timeline

22 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 1.9.1Latest
    2026-06-09 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.8.2
    2026-04-04 · diff ↗
  • 1.8.1
    2026-03-06 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 1.0-15
    2024-11-07 · diff ↗
  • 1.0-14
    2024-06-27 · diff ↗
  • 1.0-13
    2024-06-01 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 1.0-12
    2024-02-02 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0-11
    2022-10-30 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 1.0-10
    2021-11-10 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.0-9
    2021-01-19 · diff ↗
Show 16 earlier events
  • 1.0-8
    2020-09-13 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0-1
    2020-04-02 · diff ↗
  • 1.0
    2020-02-02 · diff ↗
  • 0.99-7
    2019-11-07 · diff ↗
  • 0.99-6
    2019-06-02 · diff ↗
  • 0.99-5
    2019-05-13 · diff ↗
  • R
    R 3.6.0 released · 2019-04-26
  • 0.99-4
    2019-03-13 · diff ↗
  • 0.99-3
    2019-02-20 · diff ↗
  • 0.99-2
    2018-11-06 · diff ↗
  • 0.99
    2018-05-26 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.95
    2018-02-20 · diff ↗
  • 0.94-4
    2017-11-20
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2017-11-20
Total releases
22 / 9 yrs
License
Apache License 2.0 | file LICENSE OSI
Additional repositories
bnaras.r-universe.dev, bnaras.github.io
Minimum R
≥ 4.3.0
Bundled data
16 KB / 3 files
Download size
460 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →