remove_metadata | R Documentation |
This function removes metadata from a YAML configuration file by deleting the specified key from the metadata section of the file.
remove_metadata(config_path, key)
config_path |
The file path to the YAML configuration file |
key |
The key for the metadata entry to be removed |
(invisible) config_path
where the configuration have been updated
config <- tempfile(fileext = ".yml")
file.copy(
from = system.file("config", "_connector.yml", package = "connector"),
to = config
)
config |>
add_metadata(
key = "new_metadata",
value = "new_value"
) |>
remove_metadata("new_metadata")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.