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 May 31, 2022, 10:41 p.m.