Dear All, I am analyzing trial data for survival. During the loading of the R package "flexsurv", the following error message appeared.
"Loading required package: survival Error: package or namespace load failed for ‘flexsurv’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package called ‘lifecycle’ Despite installing lifecycle package, loading lifecycle package results in the following error message: Error in library(lifecycle) : there is no package called ‘lifecycle’ Moreover, the flexsurvreg function in the flexsurv library also produces an error: Error in flexsurvreg(Surv(Time, Event) ~ 1, anc = NULL, data = data1, : could not find function "flexsurvreg" Several times I have installed and uninstalled packages, re-started R, but the error persists. Could anyone help me with the flexsurv package, why is it not working? Best regards, Shah [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.