R_learner
R_learner

Reputation: 39

Problems loading package in R

When I try to load fPortfolio, the following error message occures. Do someone knows how to solve this?

> library("fPortfolio")

Error: package or namespace load failed for ‘fPortfolio’ in loadNamespace(i c(lib.loc, .libPaths()), versionCheck = vI[[i]]): there is no package called ‘XML’

Upvotes: 0

Views: 477

Answers (1)

Terru_theTerror
Terru_theTerror

Reputation: 5017

Firstly install XML package:

  install.packages("XML")

After that, try again.

Upvotes: 2

Related Questions