Closed joshuaulrich closed 1 year ago
The warning should point to a note in the documentation about how to fix this issue. A Google search for the error message doesn't lead to anything useful either.
# if 'x' is an outdated xts object:
tclass(x) <- "Date"
tzone(x) <- "UTC"
The setters remove the attributes from the xts object and put them on the index.
There are several warnings about the deprecated attributes that were (re)moved in #245. These may be extremely verbose in some cases, and may cause errors in other cases. For example, an error occurred in the reverse dependency check for the 'portfolioBacktest' package, when
foreach() %dopar%
was called with a 'snow' backend.Make these warnings conditional on a global option (e.g.
xts_warn_deprecated
). Set the option toFALSE
by default, and add a message to.onAttach()
to suggest users run their scripts with it set toTRUE
. The default will be set toTRUE
on the next non-patch release.