Hi,
I created an S3 method to handle getting residuals from MxModel objects.
The package works fine for me, but running check(), i get this NOTE:
* checking S3 generic/method consistency ... NOTE
Found the following apparent S3 methods exported but not registered:
confint.MxModel residuals.MxModel
See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
manual.
Sure enough, the method is not appearing as an S3 in NAMESPACE.
Any cues how to fix this?
Here's the core of the oxygen and function:
#' Get residuals from an MxModel
#'
#' Return the \code{\link{residuals}} from an OpenMx RAM model
#'
#' @rdname residuals.MxModel
#' @param object An fitted \code{\link{mxModel}} from which to get residuals
#' @param digits rounding (default = 2)
#' @param suppress smallest deviation to print out (default = NULL = show all)
#' @param ... Optional parameters
#' @return - matrix of residuals
#' @export residuals.MxModel
residuals.MxModel <- function(object, digits = 2, suppress = NULL, ...){
return("hello"
}