nlmixr2 / rxode2

rxode2
https://nlmixr2.github.io/rxode2/
GNU General Public License v3.0
28 stars 8 forks source link

`digest` method for most/all object types #689

Open billdenney opened 3 months ago

billdenney commented 3 months ago

I'm working on nlmixr2targets, and I find that in some scenarios, I consistently get different model digest values (digest::digest(rxuiObject) differs between R sessions for rxUi objects that are created the same way). I think that this relates to creating digests of the environments or temporary files.

That said, the rxuiObject$md5 value remains consistent between R sessions.

  1. Would it be reasonable to create a digest.rxUi method that would return the object$md5 value or can you think of a reason that should not be done?
  2. And related to that, would it make sense to create a digest.nlmixr2FitCore method that would do the same thing?
  3. Would there be any other object types that should have a digest method created?
  4. Should this live in the specific packages (rxode2::digest.rxUi, nlmixr2est::digest.nlmixr2FitCore) or within nlmixr2targets?
billdenney commented 3 months ago

This is related to #163.