You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
draw.Blob <- function (type = 'small')
{
'Something about blobs'
type <<- 'small'
}
#' Blob
#'
#' Blah blah blah
#'
#' @slot type a character vector
#' @examples
#' Blob(type = 'small')
#' @export
Blob <- setRefClass (
Class = "Blob",
fields = list(type = 'character'),
methods = list(draw = draw.Blob)
)
check() generates following error message:
* checking for code/documentation mismatches ... WARNING
S4 class codoc mismatches from documentation object 'Blob-class':
Slots for class 'Blob'
Code: .xData
Inherited: .xData
Docs: type
If I remove the roxygen line starting with @slot this error message goes away.
Activity
hadley commentedon Feb 3, 2014
If you can figure out how to make the Rd file correct, could you please include here?
imanuelcostigan commentedon Feb 3, 2014
Rd file generated by roxygen looks like this:
Changing first line to
\section{Fields}solved the problem.hadley commentedon Feb 3, 2014
Grrr. At least it's an easy fix.