Dear All,
When I run check_win_devel() on my package, I encounter the following error:

-------------------------
Error: objects 'Surv', 'is.Surv' are not exported by 'namespace:survival'
Execution halted
ERROR: lazy loading failed for package 'SPIChanges'
* removing 'd:/RCompile/CRANguest/R-devel/lib/SPIChanges'


----------------------
However, when I run devtools::check() locally, no errors are reported. I have 
already included the following directive in the function where the error seems 
to originate:

-------------------
#' @importFrom survival Surv is.Surv

------------

The issue seems to have started after I added the following lines to my code:

----------------------
loess_model <- stats::loess(zero_rain ~ time, span = 0.8)
prob_zero_rain <- Rmpfr::pmax(0, Rmpfr::pmin(1, stats::predict(loess_model)))

-----------

I do not call Surv or is.Surv explicitly in my package, and I suspect this 
error might be related to a dependency being triggered indirectly during lazy 
loading.
Any help or insights on how to resolve this would be greatly appreciated.
Thank you,
Gabriel Constantino Blain



        [[alternative HTML version deleted]]

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to