-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errrors in several demos #13
Comments
The package development seems to have moved on with some details in the demos lagging behind. |
Hi!
I have the newest version of R installed and just (again) updated all necessary packages (devtools::install_github("braverock/PortfolioAnalytics")). Now, whatever I try , some of the demos do not work:
demo(backwards_compat): ERROR: Error in constraint(assets = funds, min = 0, max = 0.55, min_sum = 0.99, : you must specify a constraint type
demo(constrained_optim): Error in constraint(assets = colnames(edhec[, 1:10]), min = 0.01, max = 0.4, : you must specify a constraint type
demo(demo_factor_exposure): Error in rp_transform(w = tportfolio, min_sum = min_sum, max_sum = max_sum, : Infeasible portfolio created, perhaps increase max_permutations and/or adjust your parameters.
demo(demo_leverage_exposure_constraint): Error in rp_transform(w = tportfolio, min_sum = min_sum, max_sum = max_sum, : Infeasible portfolio created, perhaps increase max_permutations and/or adjust your parameters.
demo(demo_risk_budgets): Error in optimize.portfolio.rebalancing(R, SDRB.portf, optimize_method = "random", : object 'SDRB.portf' not found
^demo(higher_moments_boudt ): Error in portfolio.moments.boudt(R, init.portf, k = 3) : could not find function "portfolio.moments.boudt"
demo(sortino) : Depends on doMC which is not available for windows
demo(testing_GenSA): Error in constraint(assets = funds, min = -2, max = 2, min_sum = 0.99, : you must specify a constraint type
demo(testing_ROI ): Error in constraint(assets = colnames(edhec), min = -Inf, max = Inf, min_sum = 1, : you must specify a constraint type
demo(testing_pso ): Error in constraint(assets = funds, min = -2, max = 2, min_sum = 0.99, : you must specify a constraint type
Maybe this could be fixed?
Best regards, Sebastian
The text was updated successfully, but these errors were encountered: