[R] could not find function "flexsurvreg"
dr@@|@m@o|@ng| @end|ng |rom gm@||@com
Sat Oct 1 14:53:00 CEST 2022
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 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?
[[alternative HTML version deleted]]
More information about the R-help