Hi, I am trying to access the source code from package GCPM, where I am interested to look into the source code of one function called LGD. So I did below> LGDstandardGeneric for "LGD" defined from package "GCPM" function (this) standardGeneric("LGD") <bytecode: 0x7f9016a683a8> <environment: 0x7f9016a91390> Methods may be defined for arguments: this Use showMethods(LGD) for currently available ones.> showMethods(LGD)Function: LGD (package GCPM) this="GCPM" However I still could not find the source code using above approach. It would be very helpful if you can help to find the complete source code of this function.
? Thu, 8 Dec 2022 20:56:12 +0530 Christofer Bogaso <bogaso.christofer at gmail.com> ?????:> > showMethods(LGD) > > Function: LGD (package GCPM) > > this="GCPM"Almost there! Try getMethod(LGD, signature = 'GCPM'). Not sure if this is going to work as written, but if you need to see an S4 method definition, getMethod is the way. -- Best regards, Ivan