R/from_toml.R

Defines functions from_toml

Documented in from_toml

#' Convert `Toml` to an R object
#'
#' Use `from_toml()` to convert a `Toml` document to an R object.
#' Note that that due to the encoding of values in the TOML specification
#' a perfect round trip from TOML to R is not always possible.
#'
#' @param x a `Toml` object.
#' @returns a list
#' @examples
#' from_toml(toml(hello = "world"))
#' @export
from_toml <- function(x) {
  .catch(x$from_toml())
}

Try the tomledit package in your browser

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

tomledit documentation built on April 11, 2025, 6:14 p.m.