Prints a nested list in a way that looks nice

.printNestedList(lst, level = 0)

Arguments

lst

list object to print

level

the indentation level

Value

No return value, called for side effects

Details

Useful for displaying the config of a PEP

Examples

projectConfig = system.file("extdata",
"example_peps-master",
"example_basic",
"project_config.yaml",
package = "pepr")
p = Project(file = projectConfig)
#> Loading config file: /home/runner/work/_temp/Library/pepr/extdata/example_peps-master/example_basic/project_config.yaml
.printNestedList(config(p),level=2)
#>     pep_version: 2.0.0
#>     sample_table: 
#> /home/runner/work/_temp/Library/pepr/extdata/example_peps-master/example_basic/sample_table.csv
#>     name: example_basic