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
{{ message }}
Repository navigation
issue with assignment of eval'd object with by= #1857
# all the functions are the same after assignment
DT$f
# [[1]]
# function (v)
# dexp(v, 1/5L) * (1 - pnorm(n, 1L, 3L))
# [[2]]
# function (v)
# dexp(v, 1/5L) * (1 - pnorm(n, 1L, 3L))
# testing by calling each function, since R likes to print funs in an obfuscatory manner
uniqueN(sapply(DT$f, function(f) f(10)))
# [1] 1
For now I'm doing a for loop instead since speed is not a big issue here and I am sick of debugging environments/evaluations/substitutions. Thanks.
Activity
jangorecki commentedon Mar 22, 2020
Results from the last group overrides the previously computed results. Adding
copydoes not seem to solve the problem in this case.vh-d commentedon Sep 24, 2021
I am facing a similar issue.
When we run the create() inside
by=:all seems fine during the execution:
But its actually all rewritten by the last batch:
A for loop gives expected results: