[R-pkg-devel] could not find function of a package
murdoch.duncan at gmail.com
Thu May 25 14:55:24 CEST 2017
On 24/05/2017 11:59 PM, Maity, Arnab K wrote:
> Dear R Package developers,
> Apologies for cross posting.
> I posted the following message on R help forum and got advised to post here.
> I created a package on github. It is located at "arnabkrmaity/brlrmr". Then I submitted this on CRAN and it is now available on CRAN.
> When I install this package from github using install.github("arnabkrmaity\brlrmr"), everything works fine. However, when I install directly from R CRAN by install.packages("brlrmr"), and then try to examine the functions, I receive an error, ?
> Error: could not find function "fil"
> fil() is a function of this package. The data with this package is getting attached fine.
> Any idea what is going wrong with the submission? Your help is much appreciated.
> Duncan Murdoch replied that my NAMESPACE file doesn't export anything.? How do make my NAMESPACE file export the desired functions?
The NAMESPACE file on CRAN is not the same as the one on github. This
shows what is installed from CRAN:
file.show(system.file("NAMESPACE", package = "brlrmr"))
What I see is
# Generated by roxygen2: do not edit by hand
Lots of imports, no exports. I don't know roxygen2; maybe someone else
can tell you how this kind of difference would happen.
More information about the R-package-devel