tests/testthat.R

if (requireNamespace("testthat", quietly = TRUE)) {
  library(testthat)
  library(PortfolioTesteR)
  test_check("PortfolioTesteR")
} else {
  message("Skipping tests: 'testthat' not installed")
}

Try the PortfolioTesteR package in your browser

Any scripts or data that you put into this service are public.

PortfolioTesteR documentation built on Nov. 5, 2025, 5:23 p.m.