Skip to content
Prev 2198 / 12125 Next

[R-pkg-devel] Problem enhancing a package with a predict method not declared to be an S3 method

Hi Duncan,

Thanks for your comments. I appreciate that you do not speak for CRAN. 

I had thought that, while I am accessing asreml internals, I do not believe that it is the intention of the maintainer that they be internal. Indeed, I am only calling functions documented in the manual and so it would appear that they are intended to be part of the API for the packages. I had hoped that this would be an allowed exception.

Nonetheless, I am attempting to contact the maintainer and I will see what that brings.

Regards,

  Chris


-----Original Message-----
From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] 
Sent: Saturday, 16 December 2017 10:18 PM
To: Chris Brien; r-package-devel at r-project.org
Subject: Re: [R-pkg-devel] Problem enhancing a package with a predict method not declared to be an S3 method
On 15/12/2017 11:52 PM, Chris Brien wrote:
I don't speak for CRAN, but I think it is consistent with their philosophy that a package doing what yours does should not be allowed there.

Your package depends on the internals of asreml.  There is nothing to stop that package from changing them, causing your package to generate errors or incorrect results.  CRAN does what it can to prevent this kind of error, and it can't do it with yours.

I'd suggest that you contact the maintainers of asreml, and ask them to export the functions you need.  If they are unwilling to do that, then you could ask them to distribute your package, or distribute it yourself (e.g. by making it available on Github).

One other possibility is that their license would allow you to copy enough of their package into yours that you wouldn't need the ::: 
import, but that seems unlikely.

Duncan Murdoch