getHistoryData() error

When running

tkr = c(‘FB.US Equity’, ‘AMZN.US Equity’, ‘NFLX.US Equity’, ‘GOOG.US Equity’)

px = getHistoryData(tkr, zoom=‘2007::2016’, asXts=TRUE)

from the notebook I get the following error:


Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]): namespace ‘vctrs’ 0.2.2 is being loaded, but >= 0.3.0 is required
Traceback:

  1. getHistoryData(tkr, zoom = “2007::2016”, asXts = TRUE)
  2. tryCatch(getHistData(ticker = ticker, field = field, start = start,
    . end = end, zoom = zoom, period = period, lastN = lastN, asXts = asXts),
    . error = function(e) {
    . warning(e)
    . if (asXts)
    . return(xts())
    . else return(list(NA, NA, NA))
    . })
  3. tryCatchList(expr, classes, parentenv, handlers)
  4. tryCatchOne(expr, names, parentenv, handlers[[1L]])
  5. value[3L]
  6. warning(e)
  7. withRestarts({
    . .Internal(.signalCondition(cond, message, call))
    . .Internal(.dfltWarn(message, call))
    . }, muffleWarning = function() NULL)
  8. withOneRestart(expr, restarts[[1L]])


Hello,

Can you run restartSession() in your console and .sourceQlib() again and see if it fixes this?

Also, have you installed any external packages on your own? This might be happening due to a package conflict.


Restarting the kernel did not fix the issue…


I’ve requested a package in the past but I’m not sure that I installed a package myself tho.


Can you try renaming the R folder in your home directory (~/R) to see if it fixes it?

Okay, I just did and now a get a new error saying the ‘rang’ package is outdated instead of the ‘vctrs’ package.


Can you try to restart your server, .sourceQlib(), and try one more time please?


https://lab.alphien.com/hub/home


It works now, thank you very much!