First try creating a package and see if there is a problem. Export from the package is defined in the NAMESPACE file. When you use devtools::load_all , the namespace does not load (see here ). Learn more about this and creating a package in the Writing Extensions guide.
You may have used the default export template in your NAMESPACE file. Check it out in your package, and if it looks like this:
exportPattern("^[^\\.]")
then the package exports everything from the namespace that does not start with a dot. Therefore, you either call it .x or change exportPattern() to, for example ...
export(myfun1, myfun2)
to export the functions myfun1 and myfun2 from the package. By explicitly defining what you want to export, you avoid that something is available when it is not necessary.
source share