[Rd] specials and ::
Ivan Krylov
|kry|ov @end|ng |rom d|@root@org
Mon Aug 26 18:43:38 CEST 2024
В Mon, 26 Aug 2024 09:42:10 -0500
"Therneau, Terry M., Ph.D. via R-devel" <r-devel using r-project.org> пишет:
> For instance
> fit <- survival::survdiff( survival::Surv(time, status) ~
> ph.karno + survival::strata(inst), data= survival::lung)
>
> This fails to give the correct answer because it fools terms(formula,
> specials= "strata").
Apologies if the following has no chance to work for reasons obvious to
everyone else, but *currently*, terms(formula, specials= c('strata',
'survival::strata')) seems to recognise `survival::strata`. Would it be
possible to then post-process the terms object and retain only one kind
of 'strata' special?
Having said that, if https://bugs.r-project.org/show_bug.cgi?id=18568
is merged, this will probably break and will instead require
recognising `::` as a special and then manually figuring out which
function is being imported from which package.
--
Best regards,
Ivan
More information about the R-devel
mailing list