R Observatory
Search
install.packages("riskParityPortfolio")
CRAN checks, method
OKnotes on 13 of 13
CRAN 30-day downloads, method
1,386−6.1% down on the 30 days before, the worse direction
Test coverage, method
85%of lines run by tests

Fast design of risk parity portfolios for financial investment. The goal of the risk parity portfolio formulation is to equalize or distribute the risk contributions of the different assets, which is missing if we simply consider the overall volatility of the portfolio as in the mean-variance ...

Full description

Fast design of risk parity portfolios for financial investment. The goal of the risk parity portfolio formulation is to equalize or distribute the risk contributions of the different assets, which is missing if we simply consider the overall volatility of the portfolio as in the mean-variance Markowitz portfolio. In addition to the vanilla formulation, where the risk contributions are perfectly equalized subject to no shortselling and budget constraints, many other formulations are considered that allow for box constraints and shortselling, as well as the inclusion of additional objectives like the expected return and overall variance. See vignette for a detailed documentation and comparison, with several illustrative examples. The package is based on the papers: Y. Feng, and D. P. Palomar (2015). SCRIP: Successive Convex Optimization Methods for Risk Parity Portfolio Design. IEEE Trans. on Signal Processing, vol. 63, no. 19, pp. 5285-5300. <doi:10.1109/TSP.2015.2452219>. F. Spinu (2013), An Algorithm for Computing Risk Parity Weights. <doi:10.2139/ssrn.2297383>. T. Griveau-Billion, J. Richard, and T. Roncalli (2013). A fast algorithm for computing High-dimensional risk parity portfolios. <arXiv:1311.4057>.

Maintainer
Daniel P. Palomar
Licence
GPL-3
Latest release
1 Jun 2021
First release
25 Dec 2018

Compare with another package

More details
Releases
6
Needs compilation
Yes
Date
2021-05-31
RoxygenNote
7.1.1
Task views (1)
Subjects (1) Method, Subjects
Cite

Package

Run in R for the authors' entry:

citation("riskParityPortfolio")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.1109/tsp.2015.2452219.

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 riskParityPortfolio version 0.2.2 [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. 13 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
    0.2.2
    Time taken
    127 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

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

    The unreleased R on Linux, x86_64, debian-gcc

    Note

    Version checked
    0.2.2
    Time taken
    110 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

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

    The unreleased R on Linux, x86_64, fedora-clang

    Note

    Version checked
    0.2.2
    Time taken
    107 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-devel-linux-x86_64-fedora-gcc

    The unreleased R on Linux, x86_64, fedora-gcc

    Note

    Version checked
    0.2.2
    Time taken
    102 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-devel-windows-x86_64

    The unreleased R on Windows, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    235 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-oldrel-macos-arm64

    The previous release of R on macOS, arm64

    Note

    Version checked
    0.2.2

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-oldrel-macos-x86_64

    The previous release of R on macOS, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    104 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-oldrel-windows-x86_64

    The previous release of R on Windows, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    194 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-patched-linux-x86_64

    The patched release of R on Linux, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    128 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-release-linux-x86_64

    The current release of R on Linux, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    125 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-release-macos-arm64

    The current release of R on macOS, arm64

    Note

    Version checked
    0.2.2
    Time taken
    27 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-release-macos-x86_64

    The current release of R on macOS, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    124 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • r-release-windows-x86_64

    The current release of R on Windows, x86_64

    Note

    Version checked
    0.2.2
    Time taken
    159 s

    Rd files: Note

    checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?

    Full output

  • 13 Note
Check output (2)

Rd files, Note on 13 platforms

checkRd: (-1) riskParityPortfolio.Rd:163: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:164: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:165: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:166: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:167: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:168: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:169: Lost braces in \itemize; meant \describe ?
checkRd: (-1) riskParityPortfolio.Rd:170: Lost braces in \itemize; meant \describe ?

CRAN incoming feasibility, Note on 2 platforms

Maintainer: ‘Daniel P. Palomar <daniel.p.palomar@gmail.com>’

Package CITATION file contains call(s) to old-style personList() or
as.personList().  Please use c() on person objects instead.
Package CITATION file contains call(s) to old-style citEntry().  Please
use bibentry() instead.

The Description field contains
  parity portfolios. <arXiv:1311.4057>.
Please refer to arXiv e-prints via their arXiv DOI <doi:10.48550/arXiv.YYMM.NNNNN>.

Over time

No change since 22 Apr 2026

As a list (3)
ChangedWorst statusOKNotesWarningsErrors
22 Apr 2026Note01400
18 Apr 2026Error01301
10 Mar 2026Note01400

Since March 2026

Check results on CRAN

Total downloads in the last 30 days
1,398−8.5% down on the 30 days before, the worse directionIt is the sum of 4 channels: CRAN, r2u, autoCRAN and c2d4u.

CRAN rank

3,178 of 26,530

CRAN

1,386 downloads in the last 30 days

Rank
3,178 of 26,530
Change
−6.1% down on the 30 days before, the worse direction

It is in the total. Take it out

r2u

2 downloads in the last 30 days

Rank
14,902 of 30,526
Change
−88.9% down on the 30 days before, the worse direction

It is in the total. Take it out

autoCRAN

3 downloads in the last 30 days

Rank
17,776 of 29,212
Change
−81.3% down on the 30 days before, the worse direction

It is in the total. Take it out

c2d4u, no longer updated

7 downloads in the last 30 days

Rank
2,397 of 7,575
Change
−61.1% down on the 30 days before, the worse direction

It is in the total. Take it out

Over time

Compare downloads

Needs
6
Dependent packages
1
Suggested by
0
Needs (6)
Installing it adds
6 packages, 5.7 MB of source
Of those, need compilation
4
Optional extras (9)
Dependent packages (1)
PackageTitleDownloads in 30 days
ConnectednessApproachConnectedness Approach1,215
Functions
75
Public exports
2
Lines of R code
1,241
Median complexity
1
Functions (75)
Size and composition

Lines by kind (2,496)

KindLinesShare
R code1,24150%
Tests45218%
Documentation31613%
Guides180.7%
Compiled code46919%

Lines by language

LanguageLinesShare
R1,69368%
C++41317%
Rd31613%
C562%
Other180.7%

Languages are counted from file extensions.

Files
48
R functions
54
Compiled functions
21
Complexity
Median
1
Mean
3.04
Highest
56
Median lines per function
6
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
54
Calls
25
Unconnected
23
Groups
8
Growth (6 releases)
Total lines by release
1,671 on 25 Dec 20182,496 on 1 Jun 2021
Release changes

The tests ran and coverage was measured.

Lines run by tests
84.7%
Expressions run by tests
85.7%
Test cases
30
Exports named in tests
50%
Coverage by file (5)
Coverage run
Lines counted
594
Lines the tests ran
485
Tests passed
Yes
Measured with
covr 3.6.5 on R 4.6.1
Test suite
Has tests
Yes
Test frameworks
testthat
Test cases
30
Lines of tests
452
Test lines per line of code
0.36
Exports documented
100%
Arguments documented
100%
Return value documented
50%
Help pages with examples
66.7%
Examples run in checks
100%
Guides (3)
Other documentation
README
Yes, 440 words
Release notes file
Yes
Help pages
3
Lines of documentation
316

dppalomar / riskparityportfolio on github.com

Stars
122no change on 30 days ago
Forks
31
Open issues
9
Last commit
15 Nov 2022
Activity
Commits
750
Open pull requests
0
Tagged releases
6
Latest tagged release
v0.2.2, 1 Jun 2021
In development
Default branch at 0.2.2.9000, ahead of CRAN 0.2.2 (checked 2026-10-25)
Issues closed in
19 days (median)
Pull requests closed in
–
Pull requests merged
–
Created
21 Aug 2018
Licence file reads as
GPL-3.0
Development practices (9)
KindFound
Continuous integrationGitHub Actions
Governance and communityIssue templates
The repository owner accepts GitHub Sponsors
Docs sourceREADME.Rmd
CoverageCoverage reporting
Reproducibility and dev environmentMakefile
CRAN release processcran-comments.md
Lint, format, editorRStudio project
Git structural.gitattributes

Method, repository practices

Across dppalomar

R releases
  • On CRAN
  • Release
VersionReleasedREvents
0.2.2 current1 Jun 20214.1.0Licence: GPL-3
0.2.17 Oct 20193.6.1
0.2.031 Aug 20193.6.1
0.1.21 Jun 20193.6.0
0.1.18 Jan 20193.5.2
0.1.025 Dec 20183.5.2
Release notes (0.2.2)
  • Improved initial point + minor fixes to conform with R 4.0.