search for: newmethodsmatrix

Displaying 1 result from an estimated 1 matches for "newmethodsmatrix".

2012 May 24
1
New S3 methods for optional package
...s rather long, and most potential users of B will not be interested in package A and what it depends on. Unfortunately I struggle with doing this right. After asking on the list some time ago, I have listed A under Suggests, and have a .onLoad function in B with if (require(A)) registerS3methods(newMethodsMatrix, package = A, env = environment(B)) But starting with R 2.13 or R 2.14, R CMD check creates a note: "Package startup functions should not change the search path. See section 'Good practice' in ?.onAttach." I have understood that packages with notes can be uploaded to CRAN, but t...