library(RcppTOML)
file <- system.file("toml", "example.toml", package="RcppTOML")
toml <- parseTOML(file) # given file, return parsed object
summary(toml) # really sparse summary method
print(toml) # print is a wrapper around str()
txt <- "value='''\nHello\nWorld!'''" # input with \n is ..
parseTOML(input = txt, fromFile = FALSE) # ... (doubly) escaped by default
parseTOML(input = txt, fromFile = FALSE, escape = FALSE) # ... kept 'as is'
Run the code above in your browser using DataLab