Re: [Rd] New S3 methods for optional package

2012-05-24 Thread Jon Olav Skoien
Dear Prof. Ripley, Thanks a lot for your answers! See inline comments below. On 24-May-12 12:01, Prof Brian Ripley wrote: On 24/05/2012 10:38, Jon Olav Skoien wrote: I have listed A under Suggests, and have a .onLoad function in B with if (require(A)) registerS3methods(newMethodsMatrix, package

Re: [Rd] New S3 methods for optional package

2012-05-24 Thread Prof Brian Ripley
On 24/05/2012 10:38, Jon Olav Skoien wrote: Hi, I have asked this question before, but the solution I ended up with (see below) creates a note when running R CMD check. So I am trying again... I am developing a package B that, among other things, also offers some extra S3-methods for functions

[Rd] New S3 methods for optional package

2012-05-24 Thread Jon Olav Skoien
Hi, I have asked this question before, but the solution I ended up with (see below) creates a note when running R CMD check. So I am trying again... I am developing a package B that, among other things, also offers some extra S3-methods for functions in package A if the user has installed A. I