Generate YAML File from Directory Structure
Source:R/generate_yaml_from_directory.R
generate_yaml_from_directory.Rd
Generate YAML File from Directory Structure
Usage
generate_yaml_from_directory(
input_path = tempdir(),
output_yaml_path = "_project_structure_en.yaml",
remove_prefix_numbers = FALSE
)
Arguments
- input_path
String. The path to the directory whose structure needs to be captured.
- output_yaml_path
String. The path where the YAML file will be saved.
- remove_prefix_numbers
Boolean. Whether to remove numeric prefixes and any resulting leading non-alphanumeric characters from folder names. Defaults to FALSE.
Examples
generate_yaml_from_directory(
output_yaml_path =
tempfile("_project_structure_en", fileext = ".yaml")
)