IIRC some packages use get() instead of double-colon to suppress the NOTE. I would probably ignore it myself.
On Wed, Dec 16, 2020 at 8:29 AM Colin Gillespie <csgilles...@gmail.com> wrote: > > Hi, > > I'm planning on using the tools::R_user_dir function in a package. But > for obvious reasons, I don't want to set the dependency on R 4. > > My code is basically > > if (as.numeric(R.version$major) < 4) # do something > else tools::R_user_dir("oysteR", which = "cache") > > When checking on win-builder R3.6 I get the note > > * checking dependencies in R code ... NOTE > Missing or unexported object: 'tools::R_user_dir' > > ## Question > > Is my code correct and can I ignore this note? > > Thanks > > Colin > > > Dr Colin Gillespie > http://www.mas.ncl.ac.uk/~ncsg3/ > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel