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
For example, when opt_constant_propagation finds a function call, it deletes the previously found constant-assigned values. This is mainly done to avoid having
x<-1
assign("x", 3)
y<-x
Propagated to
x<-1
assign("x", 3)
y<-1
In R we can list which base functions modify the environment, for example, assign, rm, etc. However, this would not be a solution, as we can define new functions that wrap the base ones, for instance:
For example, when
opt_constant_propagation
finds a function call, it deletes the previously found constant-assigned values. This is mainly done to avoid havingPropagated to
In R we can list which base functions modify the environment, for example,
assign
,rm
, etc. However, this would not be a solution, as we can define new functions that wrap the base ones, for instance:A possible solution would be to let the user identify which functions edit the environment.
or
rm_all() # o @edits_env
The text was updated successfully, but these errors were encountered: