R/aslist.R

Defines functions as.list.R6

Documented in as.list.R6

#' Create a list from an R6 object
#'
#' This returns a list of public members from the object. It simply calls
#' \code{as.list.environment}.
#'
#' @param x An R6 object.
#' @param ... Other arguments, which will be ignored.
#'
#' @export
as.list.R6 <- function(x, ...) {
  as.list.environment(x, all.names = TRUE)
}

Try the R6 package in your browser

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

R6 documentation built on Aug. 19, 2021, 5:05 p.m.