# 1. Simple Object (Named List)
config_obj <- list(
version = 1.0,
is_active = TRUE,
user_id = 99
)
as_toon(config_obj)
# 2. Expanded Array (Unnamed List)
items <- list(
"apple",
list(color = "red", weight = 150),
"banana"
)
as_toon(items)
# 3. Data Frame
df <- data.frame(
time = c(9.1, 15.4),
action = c("login", "update"),
success = c(TRUE, FALSE)
)
as_toon(df)
Run the code above in your browser using DataLab