Skip to content
Prev 45850 / 63424 Next

Dependencies of Imports not attached?

On May 8, 2013, at 1:52 PM, Martin Morgan wrote:

            
By that argument Depends: is unusable. If you specify Depends: you are expressing that your package will work if those packages are on the search path. The fact that R will happily import functions from the package despite that requirement not being fulfilled seems like a bug to me.
Yes, it's the same issue, but a case where adding imports doesn't help because they are not consulted. So in the current setup only 1) is a solution. With your patch, 2) would work as well.
At least currently the PROTECT is not needed because setAttrib() protects its arguments (although there are some dangerous comments in installAttrib ;)).

Cheers,
Simon