Hello, I'm building a package. My code is stored in foo.R. This code has two functions FUN1 and FUN2. FUN1 calls FUN2. FUN1 is listed in export() under the package NAMESPACE but NOT FUN2. After building the package when I call FUN1 is giving me an error that cannot find FUN2.
I solved this by adding FUN2 in the export() NAMESPACE. However, what is puzzling me is that I have other examples similar to the above (i.e., one function calling another but only one exported) in the same package where I don't get the error message. Any idea of why that might be the case? My understanding is that export only controls what is visible to the end user but functions not listed in export() are still "usable" within the package. In this case, the reason I'd like to avoid to export FUN2 is so I don't have to add it in the package documentation. Any guidance is much appreciated. Regards, Axel. [[alternative HTML version deleted]] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel