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)
}

Try the RcppXPtrUtils package in your browser

Any scripts or data that you put into this service are public.

RcppXPtrUtils documentation built on May 25, 2022, 9:05 a.m.