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
During debugging my Package I found that some functions need to be evaluated two times, before memoise returns the stored result on every subsequent call. I found that this is because on.exit statements change the hash value of the functions body, after being evaluated for the first time.
I wonder if it is possible, that memoise takes care of this, admittedly rather special, case, maybe by using as.character(body(fun)), which isn't affected by the first evaluation.
I asked the same question in the digest package repo here: eddelbuettel/digest#160, but I guess a workaround would rather be a matter for memoise.
The text was updated successfully, but these errors were encountered:
During debugging my Package I found that some functions need to be evaluated two times, before memoise returns the stored result on every subsequent call. I found that this is because
on.exit
statements change the hash value of the functions body, after being evaluated for the first time.I wonder if it is possible, that memoise takes care of this, admittedly rather special, case, maybe by using
as.character(body(fun))
, which isn't affected by the first evaluation.I asked the same question in the digest package repo here: eddelbuettel/digest#160, but I guess a workaround would rather be a matter for memoise.
The text was updated successfully, but these errors were encountered: