R/scene_row.R

Defines functions new_tibble_row

Documented in new_tibble_row

#' New Tibble Row
#' 
#' Creates a row of a tibble, without the parsing and checks in tibble::new_tibble(). Internal use only.
#'
#' @param x Named list.
#'
#' @return Tibble row.
#' @keywords internal
#'
#' @examples
#' #none
new_tibble_row = function(x) {
  x = unclass(x)
  attr(x, "row.names") = 1L
  attr(x, "names") = names(x)
  class(x) = c("ray_scene", "tbl_df", "tbl", "data.frame")
  return(x)
}

Try the rayrender package in your browser

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

rayrender documentation built on Sept. 11, 2024, 8:31 p.m.