[R-pkg-devel] extending as.mcmc.list
Joe Thorley
joe at poissonconsulting.ca
Thu Apr 12 18:05:20 CEST 2018
Hi Georgi
That fixed it
Thanks
Joe
> On Apr 12, 2018, at 08:27, Georgi Boshnakov <georgi.boshnakov at manchester.ac.uk> wrote:
>
> The following is in your NAMESPACE:
>
> export(as.mcmc.list)
>
> Don't export as.mcmc.list, presumably this is the one from 'coda ' it is rarely your responsibility.
>
>
> Georgi Boshnakov
>
> -----Original Message-----
> From: R-package-devel [mailto:r-package-devel-bounces at r-project.org <mailto:r-package-devel-bounces at r-project.org>] On Behalf Of Joe Thorley
> Sent: 12 April 2018 16:01
> To: r-package-devel at r-project.org <mailto:r-package-devel at r-project.org>
> Subject: [R-pkg-devel] extending as.mcmc.list
>
> The S3 generic function coda::as.mcmc.list has a check exclusion in R-devel/src/library/tools/R/utils.R.
>
> I am trying to extend it to objects of various classes
>
> https://github.com/poissonconsulting/mcmcr/blob/master/R/as.mcmc.list.R <https://github.com/poissonconsulting/mcmcr/blob/master/R/as.mcmc.list.R><https://github.com/poissonconsulting/mcmcr/blob/master/R/as.mcmc.list.R <https://github.com/poissonconsulting/mcmcr/blob/master/R/as.mcmc.list.R>>
>
> However I get the note
>
> Found the following apparent S3 methods exported but not registered:
> as.mcmc.list
> See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
> manual.
>
> Although this note is discussed on r-package-devel
>
> https://stat.ethz.ch/pipermail/r-package-devel/2017q2/001531.html <https://stat.ethz.ch/pipermail/r-package-devel/2017q2/001531.html><https://stat.ethz.ch/pipermail/r-package-devel/2017q2/001531.html <https://stat.ethz.ch/pipermail/r-package-devel/2017q2/001531.html>>
>
> I am unclear about how I should resolve the issue.
>
> Currently I am considering renaming the function to as.mcmc_list although this feels somewhat unsatisfactory.
>
> Any advice is appreciated
>
> Joe
>
> Joe Thorley PhD, RPBio
> Computational Biologist
> Poisson Consulting Ltd.
> 4216 Shasheen Road
> Nelson, BC
> V1L 6X1, Canada
> Tel: +1 250 551 2194
> Email: joe at poissonconsulting.ca
> Web: www.poissonconsulting.ca
> Skype: joethorley
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel at r-project.org <mailto:R-package-devel at r-project.org> mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel <https://stat.ethz.ch/mailman/listinfo/r-package-devel>
Joe Thorley PhD, RPBio
Computational Biologist
Poisson Consulting Ltd.
4216 Shasheen Road
Nelson, BC
V1L 6X1, Canada
Tel: +1 250 551 2194
Email: joe at poissonconsulting.ca
Web: www.poissonconsulting.ca
Skype: joethorley
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list