Prints a nested list in a way that looks nice

.printNestedList(lst, level = 0)

Arguments

lst

list object to print

level

the indentation level

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: /private/var/folders/3f/0wj7rs2144l9zsgxd3jn5nxc0000gn/T/RtmpEYsaEm/temp_libpath43b174cbd72/pepr/extdata/example_peps-master/example_basic/project_config.yaml
#> Warning: incomplete final line found on '/private/var/folders/3f/0wj7rs2144l9zsgxd3jn5nxc0000gn/T/RtmpEYsaEm/temp_libpath43b174cbd72/pepr/extdata/example_peps-master/example_basic/project_config.yaml'
.printNestedList(config(p),level=2)
#> pep_version: 2.0.0 #> sample_table: #> /private/var/folders/3f/0wj7rs2144l9zsgxd3jn5nxc0000gn/T/RtmpEYsaEm/temp_libpath43b174cbd72/pepr/extdata/example_peps-master/example_basic/sample_table.csv #> name: example_basic