flowr-analysis / flowr

A program slicer and dataflow analyzer for the R programming language.
https://github.com/flowr-analysis/flowr/wiki
GNU General Public License v3.0
32 stars 2 forks source link

[Bug]: Using `:=` within a table access does have a side effect! #938

Closed EagleoutIce closed 2 months ago

EagleoutIce commented 2 months ago

In other words, a line like:

foo[,ii_yy := sample(ii),]

Actually changes foo as a side effect!

EagleoutIce commented 2 months ago

Additionally we can not carve them out, so there is no standalone ii_yy := sample(ii) it is all defined within the context foo and not a side-effect definition of ii_yy