Skip to content
Prev 2611 / 12125 Next

[R-pkg-devel] extending as.mcmc.list

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] On Behalf Of Joe Thorley
Sent: 12 April 2018 16:01
To: 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>

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>

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





______________________________________________
R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel