yaml_to_trick_list | R Documentation |
You should rarely need to manipulate trick objects. A use case is creating a library of tricks from an existing
yaml_to_trick_list(file)
trick_list_to_yaml(tricks, file, append = TRUE)
file |
Path to a YAML file defining tricks |
tricks |
list of tricks to write to |
append |
Whether to append to the |
Returns the first argument invisibly, called for side effects.
yaml_path <- system.file("tricks.yaml", package = "tricks")
tricks <- yaml_to_trick_list(yaml_path)
labels <- c("Edit user '.Rprofile'","Edit project '.Rprofile'")
trick_subset <- tricks[labels]
new_trick_library_path <- tempfile(fileext = ".yaml")
trick_list_to_yaml(trick_subset, new_trick_library_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.