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
[R-pkg-devel] Assistance with 'Surv' and 'is.Surv' Error in check_win_devel
6 messages · Ivan Krylov, Gabriel Constantino Blain, Uwe Ligges
? Tue, 28 Jan 2025 10:01:00 +0000 Gabriel Constantino Blain <gabriel.blain at sp.gov.br> ?????:
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
Since Surv and is.Surv are documented functions exported from the 'survival' package, something could be wrong with the copy of 'survival' installed on Win-Builder. Packages uploaded to Win-Builder are temporarily installed there to be used by other packages uploaded later (and then regularly deleted). Perhaps last time 'survival' was uploaded on Win-Builder, something went wrong with the package. If the problem doesn't go away by itself, it may be worth asking Dr. Uwe Ligges for advice.
Best regards, Ivan
Dear Ivan, Thank you for your response. I will wait for one or two days to see if the problem resolves itself. If it persists, I will reach out to Dr. Uwe Ligges for further advice. Best regards, Gabriel
From: Ivan Krylov <ikrylov at disroot.org>
Sent: 28 January 2025 11:47
To: Gabriel Constantino Blain <gabriel.blain at sp.gov.br>
Cc: R Package Development <r-package-devel at r-project.org>
Subject: Re: [R-pkg-devel] Assistance with 'Surv' and 'is.Surv' Error in check_win_devel
Sent: 28 January 2025 11:47
To: Gabriel Constantino Blain <gabriel.blain at sp.gov.br>
Cc: R Package Development <r-package-devel at r-project.org>
Subject: Re: [R-pkg-devel] Assistance with 'Surv' and 'is.Surv' Error in check_win_devel
? Tue, 28 Jan 2025 10:01:00 +0000 Gabriel Constantino Blain <gabriel.blain at sp.gov.br> ?????: > 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 Since Surv and is.Surv are documented functions exported from the 'survival' package, something could be wrong with the copy of 'survival' installed on Win-Builder. Packages uploaded to Win-Builder are temporarily installed there to be used by other packages uploaded later (and then regularly deleted). Perhaps last time 'survival' was uploaded on Win-Builder, something went wrong with the package. If the problem doesn't go away by itself, it may be worth asking Dr. Uwe Ligges for advice. -- Best regards, Ivan
Have you tried at least twice? If it persists, please let me know and forward the message you got from winbuilder. Best, Uwe Ligges
On 28.01.2025 15:47, Ivan Krylov via R-package-devel wrote:
? Tue, 28 Jan 2025 10:01:00 +0000 Gabriel Constantino Blain <gabriel.blain at sp.gov.br> ?????:
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
Since Surv and is.Surv are documented functions exported from the 'survival' package, something could be wrong with the copy of 'survival' installed on Win-Builder. Packages uploaded to Win-Builder are temporarily installed there to be used by other packages uploaded later (and then regularly deleted). Perhaps last time 'survival' was uploaded on Win-Builder, something went wrong with the package. If the problem doesn't go away by itself, it may be worth asking Dr. Uwe Ligges for advice.
Dear Dr. Uwe Ligges, I tried at least 5 times. Please se below the message I just got from winbuilder. Best Gabriel Blain ------------------------ Dear package maintainer, this notification has been generated automatically. Your package SPIChanges_0.0.0.9000.tar.gz has been built (if working) and checked for Windows. Please check the log files and (if working) the binary package at: https://win-builder.r-project.org/XW2OAzbdlK2v The files will be removed after roughly 72 hours. Installation time in seconds: 2 Check time in seconds: 13 Status: 1 ERROR, 1 NOTE R Under development (unstable) (2025-01-28 r87664 ucrt) All the best, Uwe Ligges (CRAN maintainer of binary packages for Windows)
From: Uwe Ligges
Sent: Wednesday, January 29, 2025 05:28
To: Ivan Krylov; Gabriel Constantino Blain
Cc: R Package Development
Subject: Re: [R-pkg-devel] Assistance with 'Surv' and 'is.Surv' Error in check_win_devel
Sent: Wednesday, January 29, 2025 05:28
To: Ivan Krylov; Gabriel Constantino Blain
Cc: R Package Development
Subject: Re: [R-pkg-devel] Assistance with 'Surv' and 'is.Surv' Error in check_win_devel
Have you tried at least twice? If it persists, please let me know and forward the message you got from winbuilder. Best, Uwe Ligges On 28.01.2025 15:47, Ivan Krylov via R-package-devel wrote: > ? Tue, 28 Jan 2025 10:01:00 +0000 > Gabriel Constantino Blain <gabriel.blain at sp.gov.br> ?????: > >> 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 > > Since Surv and is.Surv are documented functions exported from the > 'survival' package, something could be wrong with the copy of > 'survival' installed on Win-Builder. Packages uploaded to Win-Builder > are temporarily installed there to be used by other packages uploaded > later (and then regularly deleted). Perhaps last time 'survival' was > uploaded on Win-Builder, something went wrong with the package. > > If the problem doesn't go away by itself, it may be worth asking Dr. > Uwe Ligges for advice. >
Issue found and fixed: someone else submitted some broken survival for the on demand checks which was stuck in the on demand library. You should be able to resubmit without issues now. Best, Uwe
On 29.01.2025 13:52, Gabriel Constantino Blain wrote:
Dear Dr. Uwe Ligges, I tried at least 5 times. Please se below the message I just got from winbuilder. Best Gabriel Blain ------------------------ Dear package maintainer, this notification has been generated automatically. Your package SPIChanges_0.0.0.9000.tar.gz has been built (if working) and checked for Windows. Please check the log files and (if working) the binary package at: https://win-builder.r-project.org/XW2OAzbdlK2v <https://win-builder.r- project.org/XW2OAzbdlK2v> The files will be removed after roughly 72 hours. Installation time in seconds: 2 Check time in seconds: 13 Status: 1 ERROR, 1 NOTE R Under development (unstable) (2025-01-28 r87664 ucrt) All the best, Uwe Ligges (CRAN maintainer of binary packages for Windows) ------------------------------------------------------------------------ *From:*?Uwe Ligges *Sent:*?Wednesday, January 29, 2025 05:28 *To:*?Ivan Krylov; Gabriel Constantino Blain *Cc:*?R Package Development *Subject:*?Re: [R-pkg-devel] Assistance with 'Surv' and 'is.Surv' Error in check_win_devel Have you tried at least twice? If it persists, please let me know and forward the message you got from winbuilder. Best, Uwe Ligges On 28.01.2025 15:47, Ivan Krylov via R-package-devel wrote:
> ? Tue, 28 Jan 2025 10:01:00 +0000 > Gabriel Constantino Blain <gabriel.blain at sp.gov.br> ?????: >
>> 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
> > Since Surv and is.Surv are documented functions exported from the > 'survival' package, something could be wrong with the copy of > 'survival' installed on Win-Builder. Packages uploaded to Win-Builder > are temporarily installed there to be used by other packages uploaded > later (and then regularly deleted). Perhaps last time 'survival' was > uploaded on Win-Builder, something went wrong with the package. > > If the problem doesn't go away by itself, it may be worth asking Dr. > Uwe Ligges for advice. >