Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Göran Broström
On 2020-10-31 14:30, Gabor Grothendieck wrote: coxreg could search for frailty and issue a warning or error if found. This returns TRUE if frailty is used in the formula argument as a function but not otherwise. That would allow implementation of a nicer message than if it were just reported

Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Gabor Grothendieck
coxreg could search for frailty and issue a warning or error if found. This returns TRUE if frailty is used in the formula argument as a function but not otherwise. That would allow implementation of a nicer message than if it were just reported as a missing function. find_frailty <- function(e)

Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Göran Broström
On 2020-10-31 13:49, Duncan Murdoch wrote: On 30/10/2020 2:45 p.m., Göran Broström wrote: My CRAN package eha depends on the survival package, and that creates problems with innocent users: It is about the 'frailty' function (mainly). While (after 'library(eha)') f1 <- coxph(Surv(time, statu

Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Duncan Murdoch
On 30/10/2020 2:45 p.m., Göran Broström wrote: My CRAN package eha depends on the survival package, and that creates problems with innocent users: It is about the 'frailty' function (mainly). While (after 'library(eha)') f1 <- coxph(Surv(time, status) ~ age + frailty(inst), data = lung) produce

Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Göran Broström
On 2020-10-31 12:09, Göran Broström wrote: I think I finally got it: I must involve the export business after importing, thus, in NAMESPACE: importFrom(survival,Surv) export(Surv) That's all, Not really: * checking for missing documentation entries ... WARNING Undocumented code objects:

Re: [R-pkg-devel] import with except(ion)

2020-10-31 Thread Göran Broström
I think I finally got it: I must involve the export business after importing, thus, in NAMESPACE: importFrom(survival,Surv) export(Surv) That's all, G, On 2020-10-30 19:45, Göran Broström wrote: My CRAN package eha depends on the survival package, and that creates problems with innocent user