Legacy .First.lib call in CRAN package ‘fBonds’

Yohan Chalabi yohan.chalabi at rmetrics.org
Mon Dec 10 16:06:49 CET 2012


Dear Brian,

Thank you for your message.

I have now submitted a new version of fBonds to CRAN.

Kind regards,
Yohan

Prof Brian Ripley writes:

> All packages installled under R >= 2.14.0 (and we are now at 2.15.2)
> need a namepsace, but this package did not yet have one.  R CMD build
> and R CMD INSTALL would add one, and we have now re-built your package
> on CRAN to have such a namespace.
>
> However, the package used a .First.lib function which should be
> replaced by .onLoad, .onAttach or both, or if the sole purpose is to
> load compiled code, by a useDynlib declaration in the NAMESPACE file.
>
> Some packages are still using .First.lib() for library() calls: these
> should be replaced by Depends: entries in DESCRIPTION, or removed if
> there are already such entries.
>
> Please review the automatically-generated NAMESPACE file and improve
> it as needed.  Shortly .First.lib functions will no longer be used so
> you will need to submit an update not making use of one.
>
> There may be other issues that need fixing: see the CRAN check logs at
> http://cran.r-project.org/web/checks/check_results_NAME.html,
> replacing NAME by the name of your package.
>
> _______________________________________________
> Rmetrics-core mailing list
> Rmetrics-core at r-project.org
> https://stat.ethz.ch/mailman/listinfo/rmetrics-core



More information about the Rmetrics-core mailing list