tests/testthat/test_make_diag.R

test_that("A valid output",{
  expect_length(.make_diag(c(1,2,3,4,5)),25)
  expect_equal(.make_diag(c(1,1,1)),diag(3))
})

Try the PortfolioOptim package in your browser

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

PortfolioOptim documentation built on May 2, 2019, 10:21 a.m.