From peter.langfelder at gmail.com  Fri Sep 27 23:04:20 2013
From: peter.langfelder at gmail.com (Peter Langfelder)
Date: Fri, 27 Sep 2013 14:04:20 -0700
Subject: [Rd] Problems when moving to Imports from Depends
Message-ID: <CA+hbrhUVTj7Y6X-yEjbPL5whbyHzgs4tapEr7k4Lv3H+Zya1GQ@mail.gmail.com>

Hi all,

one of my packages uses the rcorr.cens function from the Hmisc
package. Until now I have simply put the Hmisc package into Depends:,
but prodded on by new CRAN requirements, I tried to moving it into
Imports:. However, this fails because rcorr.cens calls the function
is.Surv from survival, which does not seem to be on the search path
when Hmisc is "imported from" rather then being "depended on". (Hmisc
both Depends: on and Imports: from survival, which is a bit confusing
and discouraged by Writing R extensions.)

Do I need to include an explicit dependency on or import from
survival? Or should I leave Hmisc in the "Depends: " field? Apologies
if this is a trivial question - I am not versed in R internals and
couldn't find the answer in the Writing R extensions manual either.

Thanks,

Peter



[Rd] Problems when moving to Imports from Depends
Peter Langfelder