I just updated all my packages and restarted my system. Then I loaded RStudio and preceded to run my scripts as normal.
I got an error: Error in wday(temp_date) : could not find function "wday"
Searching, I found the wday
function is part of the lubricate package, and I have the lubricate
package installed, but not loaded.
So it seems that at least one of my updated packages previously was dependent on the lubricate package, but is not anymore, as a result even though my scripts loaded all the same packages as before, the lubricate package was missed.
So to prevent this is the future I would like to know how to find out what loaded the lubricate package from my script and if possible to know what changed. I would also like to know all of my package dependencies so I always know that this package loads that and other package so I am not surprised like this anymore.
Update:
I found more errors and slowly worked out that many packages and dependencies were not actually updated and had to be installed manually.
I found that wday
that I am using is from IDateTime from data.table. But once again I am not loading these packages directly, so how can I find out what actually loaded them.
Thanks.
Update 2: Here is my full list of library calls:
library(qmao);library(chron);library(tseries);library(iterators);library(erer);
library(corpcor); library(zoo); library(xts); library(quantmod);
library(TTR); library(graphics); library(ggplot2); library(gsee);
library(tseries); library(quantstrat); library(plyr); library(caTools);
library(zoo); library(chron); library(gtools); library(microbenchmark);
library(benchmark); library(rbenchmark); library(utils); library(Rcpp);
library(RcppXts); library(RcppArmadillo); library(gtools); library(rcppbugs);
library(RcppClassic); library(RcppStreams); library(inline); library(RcppEigen);
library(RcppParallel); library(RcppProgress); library(doParallel); library(parallel);
library(foreach); library(doMC); library(doSNOW); library(fGarch); library(FitAR);
library(fUnitRoots); library(dplyr);
None of them include lubricate or data.table so still don't know. I suppose I could go 1 by 1 loading each library until the functions work, but I really don't have the time or patience for that. Thanks again.