Export error on overwriting primitives with S3 in R package
问题 I'm trying to create a S3 method in my package called dimnames . This is a primitive in R, but there should be an S3 in my package with the same name. I've got the following file dimnames.r #' S3 overwriting primitive #' #' @param x object #' @export dimnames = function(x) { UseMethod("dimnames") } #' title #' #' @export dimnames.data.frame = function(x) { dimnames.default(x) } #' title #' #' @export dimnames.list = function(x) { lapply(x, dimnames) } #' title #' #' @export dimnames.default =