My R package uses an internal variable x. If I load the package (I’ve only tried using devtools::load_all), then x doesn’t appear in the ls() list, but it does have a value. How can I avoid this?
I’m fine with the user being able to access the variable with myPackage::x, but not simply x.
The
load_allfunction has anexport_allargument.From
?load_allSo, try using
export_all=FALSEin yourload_allcall.