in one of the recursive calls to updateMethodsInTable (the place is marked with !!! towards the end of the code below).
At the time of the error in .setupMethodsTables(generic) 'generic' is NULL and generic@group fails. The calling stack shown by the recover facility is this:
Enter a frame number, or 0 to exit
On a different Linux machine and R version (the standard faculty wide installation), library(pctsData) completes fine but package "grgen" mentioned above still gives the error at installation time.
The session info for this case:
R version 3.0.2 (2013-09-25)
Platform: x86_64-redhat-linux-gnu (64-bit)
Dr Georgi Boshnakov tel: (+44) (0)161 306 3684
School of Mathematics fax: (+44) (0)161 306 3669
Alan Turing Building 1.125
The University of Manchester email: [hidden email] Oxford Road
Manchester M13 9PL
Here is the relevant code from my package code.
When I narrowed down the cause of the problem to setGroupGeneric, I found the following commented out excerpt, probably the error was the same. A change in the syntax back then removed the problem.
## 2011-07-07 I was not able to compile pcts properly since R moved from 2.7.x to 2.8.x.
## Today I finally investigated and discovered that the reason is something to do
## with the group generic. I looked in the sources of package "methods" for the
## way group generics are defined and switched to using argument "known members"
## (see below) instead of the following commands.