x <- toml(
date = list(
full = as.Date("2025-02-07"),
parts = list(year = 2015L, month = "February", day = 7L)
),
season = "winter"
)
# fetch the date table
get_item(x, "date")
# fetch the month value
get_item(x, c("date", "parts", "month"))
# remove an item based on name
remove_items(x, "season")
# add multiple items
insert_items(x, temperature = 31, cloudy = TRUE)
Run the code above in your browser using DataLab