I have a large function made of thousands of lines of code called multiple times. In order to make my code faster I did the following:
library(compiler)
enableJIT(1)
Each time I subset my datatable, I get the following error message: "Note: no visible binding for global variable"
Would it be fine to ignore this note? How can I remove it?
Added example following comments:
dt_2 a datatable is defined in the global environment
the following function is defined
subset_dt = function(dt){
dt_2 = dt[ , A ]
}
then I call
subset_dt(dt_2)