R/print.R

Defines functions print.XPtr

#' @export
print.XPtr <- function(x, ...) {
  attrs <- attributes(x)
  cat("'", attrs[["type"]], " ", attrs[["fname"]],
      "(", paste(attrs[["args"]], collapse=", "), ")' ", sep="")
  attributes(x) <- NULL
  print(x)
  attributes(x) <- attrs
  invisible(x)
}
Enchufa2/RcppXPtrUtils documentation built on Oct. 9, 2024, 7:41 a.m.