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
It would be great to have some the functions in generics.R file (e.g. nodestates, nodeNames) exported for use in other packages. Can we expect this to happen any soon?
The text was updated successfully, but these errors were encountered:
I suspect the author don't want to clutter up the namespace with functions that most people don't ever need. The methods you refer to are nothing but getter-methods around a list object (which a grain object is). If you look inside grain-utilities.R you see the workhorse getgrain; and it simply uses the extractor function $. So nodeStates is just object$universe$levels[nodes-of-interest] and nodeNames is just object$universe$nodes. So you easily can define your own methods in your package around a grain object. And since getgrain is an exported function it is just as convenient to exploit that function.
It would be great to have some the functions in
generics.R
file (e.g.nodestates
,nodeNames
) exported for use in other packages. Can we expect this to happen any soon?The text was updated successfully, but these errors were encountered: