I would like to include in my R package a new function, which requires the Surv function from the survival package. I did include import(survival) in the NAMESPACE and I have survival installed; however, when I run R CMD check, I still get this error message:
Error in Surv(time, status) : could not find function "Surv"
I do have dependencies from other packages and I never faced such an issue. I already tried with no success to implement the solutions recommended here:
http://r.789695.n4.nabble.com/requireNamespace-etiquette-td4703620.html
Any suggestions on what might be the problem?