Skip to main content

Module toml

Module toml 

Source
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 Item to an RValue.
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 None if 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 None if the array contains non-scalar values or mixed types.
value_to_rvalue πŸ”’
Convert a TOML Value to an RValue.
vector_to_toml πŸ”’
Convert an R atomic vector to a TOML Value. Scalars (length 1) become TOML scalars; longer vectors become TOML arrays.