Portfolio Analysis, Including Numerical Methods for Optimization of Portfolios
Overview
Portfolio optimization and analysis routines and graphics.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-04-16
- WARNING6 OK, 8 WARNING2026-03-10
Documentation
- Help pages
- 144includes a package overview page
- Examples that run
- 95%20 run in a plain check · 1 never run
- Exported functions with examples
- 19%
- Documented parameters
- 100%
- Return-value docs
- 64%
- Help pages citing references
- 7%
Also includes 36 demo scripts (run with demo())
- An Introduction to Portfolio Optimization with PortfolioAnalytics PDF
- Custom Moment and Objective Functions PDF
- CVXR for PortfolioAnalytics PDF
- CVXR_in_PA_vignette PDF
- Portfolio Optimization with CVaR budgets in PortfolioAnalytics PDF
- Portfolio Optimization with ROI in PortfolioAnalytics PDF
- Robust_Covariance_Maxtrix_Estimators_in_PA
- Using Robust Covariance Matrix Estimators in PortfolioAnalytics PDF
Downloads
Repository
- PRs merged (all time)
- 46%
- Median days to close, 50 most recently updated closed issues
- 1,856
- Median days to close, 50 most recently updated closed PRs
- 15
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
Commit identities over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/braverock/portfolioanalytics on 2026-10-21.
The R CMD check workflow runs on Linux
An outside contributor's pull request to this repository was written with an AI coding tool.
- Claude CodePull requests: 7 from outside contributors, first on 2026-09-10, 7 from forks
Dependencies
Installing PortfolioAnalytics adds 16 packages (10 with compiled code, 7.2 MB of source tarballs). Heaviest: PerformanceAnalytics 5.0 MB, zoo 675 KB, xts 470 KB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.1.2Latest
- 2.1.12026-02-04 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.1.02024-12-04 · diff ↗ ·
removed 1 export
meaneqs.efficient.frontieradded 1 export
meancsm.efficient.frontier - 2.0.02024-07-03 · diff ↗ ·
added 13 exports
MycovRobMcd, MycovRobTSGS, backtest.plot, chart.EfficientFrontierCompare, custom.covRob.MM, custom.covRob.Mcd, custom.covRob.Rocke, custom.covRob.TSGS, extract_risk, meaneqs.efficient.frontier, meanrisk.efficient.frontier, opt.outputMvo, plotFrontiers - RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- unarchivedReturned to CRAN2018-05-18
- 1.1.0
- archivedRemoved from CRAN2018-05-03check problems were not corrected despite reminders
- RR 3.5.0 released · 2018-04-23
Show 4 earlier eventsHide 4 earlier events
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 1.0.36362015-04-19
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-04-19
- Total releases
- 6 / 11 yrs
- License
- GPL-3 OSI
- Copyright
- (c) 2004-2026
- Minimum R
- ≥ 4.0.0
- Bundled data
- 9.8 KB / 2 files
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PortfolioAnalytics")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.