You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ultimately, I want to create a minimal, valid S7_object object without using the 'S7' package. I want this in order to write a teeny 'codetools'-related unit test, without having to depend on the 'S7' package. Thus far, I know I can save an S7_object object to an RDS file, and obtain such a "creature" without having the 'S7' package installed, e.g.
The return value from S7_object() is a OBJSXP (formerly known as S4SXP), but with the S4 bit unset. For a time I thought it was only possible to make this object from C.
However, @ltierney did find a way to make it in R at some point:
I'm late to the party, and sorry if I missed a discussion on this, but is there a way to
dump()
an S7 object? Attempting to do so gives:which is not valid R code.
Ultimately, I want to create a minimal, valid
S7_object
object without using the 'S7' package. I want this in order to write a teeny 'codetools'-related unit test, without having to depend on the 'S7' package. Thus far, I know I can save anS7_object
object to an RDS file, and obtain such a "creature" without having the 'S7' package installed, e.g.but it would be nice not to rely on a binary representation for my unit tests.
The text was updated successfully, but these errors were encountered: