Expand description
TOML builtins β read.toml(), write.toml(), toml_parse(), and toml_serialize()
for reading, writing, and converting between R values and TOML.
StaticsΒ§
- __
BUILTIN_ πREG_ BUILTIN_ READ_ TOML - __
BUILTIN_ πREG_ BUILTIN_ TOML_ PARSE - __
BUILTIN_ πREG_ BUILTIN_ TOML_ SERIALIZE - __
BUILTIN_ πREG_ BUILTIN_ WRITE_ TOML
FunctionsΒ§
- array_
of_ πtables_ to_ rvalue - Convert an array of tables (TOML
[[section]]) to an R value. - builtin_
read_ πtoml - Read a TOML file and return its contents as an R named list.
- builtin_
toml_ πparse - Parse a TOML string into an R value.
- builtin_
toml_ πserialize - Convert an R value to a TOML string.
- builtin_
write_ πtoml - Write an R named list as a TOML file.
- coerce_
toml_ πcolumn - Coerce a column of TOML values to an R vector (for data.frame construction).
- coerce_
toml_ πitem_ column - Coerce a column of TOML Items to an R vector (for array-of-tables data.frame).
- double_
to_ πtoml - Convert an f64 to a TOML value, handling special float values.
- inline_
table_ πto_ rvalue - Convert a TOML inline table to an R named list.
- is_
simple_ πlist - Check if a list is βsimpleβ (all scalar values, no nested lists/tables). Simple lists become inline tables, complex ones become regular tables.
- item_
to_ πrvalue - Convert a TOML
Itemto anRValue. - rlist_
to_ πinline_ table - Convert an R named list to a TOML inline table.
- rlist_
to_ πtable - Convert an R named list to a TOML
Table. - table_
to_ πrvalue - Convert a TOML table to an R named list.
- toml_
array_ πto_ rvalue - Convert a TOML array to an R value.
- try_
toml_ πarray_ as_ dataframe - Try to convert a TOML array of inline tables into a data.frame.
Returns
Noneif the elements are not all inline tables with the same keys. - try_
toml_ πarray_ as_ vector - Try to convert a TOML array of scalars into an atomic vector.
Returns
Noneif the array contains non-scalar values or mixed types. - value_
to_ πrvalue - Convert a TOML
Valueto anRValue. - vector_
to_ πtoml - Convert an R atomic vector to a TOML
Value. Scalars (length 1) become TOML scalars; longer vectors become TOML arrays.