Hi Arnab,
It will be something like this:

importFrom("utils", "read.table")
export(
 fil
)
S3method(print,fil)

You will probably have to import some functions from the packages that
come with R. Then you list all the functions you want to export,
separated by commas. Finally you list any methods you have defined
(for example a "print" method to print the results of your "fil"
function. See "Package namespaces" in the "Writing R Extensions" that
comes with the R distribution.

Jim


On Thu, May 25, 2017 at 1:59 PM, Maity, Arnab K <aku...@stat.tamu.edu> 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?
>
>
>
>
>
> Arnab Kumar Maity
> Department of Statistics
> Texas A&M University
> 3143 TAMU, Room 401A
> College Station, TX 77843
> aku...@stat.tamu.edu<mailto:arnabkrma...@stat.tamu.edu>
> arnabkrma...@tamu.edu
> +1 779 777 3428<tel:%2B1%20779%20777%203428>
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> 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

Reply via email to