i have a comparable issue like already discussed here: No visible binding for global variable Note in R CMD check
In my case, I am using the function ddply in my own package and when I check the R-package I get a note that there is "no visible binding for global variable 'VARX'.
The adressed code line is:
subsample <- ddply(my_data, .(VARX), function(x){x[sample(nrow(x), 1), ]})
The variable VARX is a column in a dataframe that is provided by the package (sysdata). What is good practice to improve that code for a proper R-package?