Skip to content
Prev 15126 / 63424 Next

Undocumented S4 methods: generic coerce and siglist matrix, Massvector

Witold Eryk Wolski wrote:
It certainly does.  From the documentation of setAs():

----------------
With this explanation as background, the function setAs does a fairly 
obvious computation: It constructs and sets a method for the function 
coerce with signature c(from, to), using the def argument to define the 
body of the method.
-------------------
No cheating seems needed.  The setAs() call is part of your software & 
presumably you document it somewhere.  You do have to construct the 
corresponding alias in the same .Rd file, but it doesn't amount to cheating.

It's true that a user would have to be unusually well-informed to know 
how to ask for the corresponding documentation explicitly.