[R-pkg-devel] Weird error on CRAN linux check
I don't think it's related to the error, but you shouldn't be exporting this:
export("align<-.huxtable")
You should generally only export the method.
Hadley
On Wed, Jul 4, 2018 at 9:00 AM, David Hugh-Jones
<davidhughjones at gmail.com> wrote:
Hi all, The following shows an error for my package: https://www.r-project.org/nosvn/R.check/r-release-linux-x86_64/huxtable-00check.html Here's an excerpt:
### ** Examples ht <- huxtable(a = 1:3, b = 1:3) align(ht) <- 'right'
Error in UseMethod("align<-") :
no applicable method for 'align<-' applied to an object of class
"c('huxtable', 'data.frame')"
Calls: align<-
The error didn't show up on win-builder, travis, appveyor or my own
computer (a mac). The package defines an `align<-.huxtable` method which is
correctly loaded on my computer, and the NAMESPACE file contains these
lines:
S3method("align<-",huxtable)
export("align<-")
export("align<-.huxtable")
Has anyone got any ideas?
David
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel