Skip to content

Commit

Permalink
Last minute fixes (causing errors) for CRAN submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
dppalomar committed Jun 1, 2021
1 parent 9719785 commit 7128063
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 251 deletions.
2 changes: 0 additions & 2 deletions DESCRIPTION
Expand Up @@ -32,7 +32,6 @@ URL: https://CRAN.R-project.org/package=riskParityPortfolio,
BugReports: https://github.com/dppalomar/riskParityPortfolio/issues
License: GPL-3
Encoding: UTF-8
LazyData: true
LinkingTo:
Rcpp,
RcppEigen
Expand All @@ -47,7 +46,6 @@ Suggests:
knitr,
ggplot2,
numDeriv,
pagedown,
portfolioBacktest,
prettydoc,
rmarkdown,
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Expand Up @@ -49,7 +49,7 @@ The latest stable version of **riskParityPortfolio** is available at https://CRA

The latest development version of **riskParityPortfolio** is available at https://github.com/dppalomar/riskParityPortfolio.

**Check out the documentation here: [https://mirca.github.io/riskParityPortfolio](https://mirca.github.io/riskParityPortfolio).**
**Check out the documentation here: [https://mirca.github.io/riskParityPortfolio](https://mirca.github.io/riskParityPortfolio/).**

## Installation
To install the latest stable version of **riskParityPortfolio** from CRAN, run the following commands in R:
Expand Down
276 changes: 39 additions & 237 deletions README.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion README.md
@@ -1,3 +1,4 @@

# riskParityPortfolio

[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/riskParityPortfolio)](https://CRAN.R-project.org/package=riskParityPortfolio)
Expand All @@ -23,7 +24,7 @@ The latest stable version of **riskParityPortfolio** is available at https://CRA

The latest development version of **riskParityPortfolio** is available at https://github.com/dppalomar/riskParityPortfolio.

**Check out the documentation here: [https://mirca.github.io/riskParityPortfolio](https://mirca.github.io/riskParityPortfolio).**
**Check out the documentation here: [https://mirca.github.io/riskParityPortfolio](https://mirca.github.io/riskParityPortfolio/).**

## Installation
To install the latest stable version of **riskParityPortfolio** from CRAN, run the following commands in R:
Expand Down
20 changes: 10 additions & 10 deletions R_buildignore/developer_commands.R
Expand Up @@ -22,39 +22,39 @@ vignette(package = "riskParityPortfolio")
##
devtools::load_all() #or Ctrl-Shift-L
devtools::document() #or Ctrl-Shift-L (to generate all documentation via roxygen)
devtools::install()
#devtools::install(build_vignettes = TRUE)
devtools::install(build_vignettes = TRUE)
library(riskParityPortfolio)
#tools::showNonASCIIfile("fit_mvt.R")


# Code tests (https://codecov.io/gh/mirca/riskParityPortfolio)
devtools::test()
covr::package_coverage() # coverage of tests
#covr::package_coverage() # coverage of tests


# Compress pdf vignettes
#tools::compactPDF("vignettes/slides-RFinance2019.pdf", gs_quality = "ebook")
#tools::compactPDF("vignettes/slides-ConvexOptimizationCourseHKUST.pdf", gs_quality = "ebook")


# CRAN check and submission (http://r-pkgs.had.co.nz/release.html)
# CRAN check and submission (https://r-pkgs.org/release.html)
# checklist: https://kalimu.github.io/post/checklist-for-r-package-submission-to-cran/
devtools::check()
rcmdcheck::rcmdcheck()
devtools::check() # run_dont_test = TRUE
rcmdcheck::rcmdcheck() # build_args = "--run-donttest"
devtools::build()
#devtools::revdep(pkg = "riskParityPortfolio") # to check reverse dependencies
#devtools::check_win_release() #to check under windows
#R CMD build . # this is to generate tarball
#R CMD build . --compact-vignettes=gs+qpdf
#R CMD check riskParityPortfolio_0.2.1.tar.gz --as-cran --run-donttest # this is before submission to CRAN
#R CMD install riskParityPortfolio_0.2.1.tar.gz
#R CMD check riskParityPortfolio_0.2.2.tar.gz --as-cran --run-donttest # this is before submission to CRAN
#R CMD install riskParityPortfolio_0.2.2.tar.gz
#submit the tarball directly via the webform: https://cran.r-project.org/submit.html



## Reverse dependencies
# tools::dependsOnPkgs("riskParityPortfolio")
# tools::package_dependencies("riskParityPortfolio", reverse = TRUE)
# devtools::revdep(pkg = "riskParityPortfolio")
# revdepcheck::revdep_check() #source("https://install-github.me/r-lib/revdepcheck")
# revdepcheck::revdep_check() #devtools::install_github("r-lib/revdepcheck")
# remotes::package_deps("riskParityPortfolio")

Binary file removed vignettes/RFinance2019-slides.pdf
Binary file not shown.

0 comments on commit 7128063

Please sign in to comment.