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
Yes, it is necessary because it's basically doing the same thing that <<- would be doing... it's creating a global variable, and no such variable could possibly get created without the use of globalenv(). Clearly, instead of using the double assignment operator, the global variable is created using assign() with some extra options. Usually, instead of globalenv(), I use the simpler option envir = .GlobalEnv since it's more readable. Nevertheless, both your option and mine generate a NOTE during the CRAN check (e.g., using devtools::check()). I wonder if CRAN will eventually warm up to the idea of fully allowing this kind of call, without throwing a NOTE at us. I guess we'll have to wait and see. In any case, I'm submitting to Bioconductor soon, so I'll have to wait and see if they follow the same policy regarding this NOTE.
And the last item of the failed CRAN checks:
Are the assignments to
globalenv()
necessary? Can we avoid them?The text was updated successfully, but these errors were encountered: