Prints the directory structure of a given dir in a tree-like format. Invisibly returns the lines so the result can be captured if needed.
Examples
file_tree()
#> /home/runner/work/evanverse/evanverse/docs/reference
#> +-- check_pkg.html
#> +-- comb.html
#> +-- compile_palettes.html
#> +-- create_palette.html
#> +-- df2list.html
#> +-- df2vect.html
#> +-- download_batch.html
#> +-- download_gene_ref.html
#> +-- download_geo.html
#> +-- download_url.html
#> +-- figures
#> | +-- logo.png
#> +-- file_info.html
#> +-- file_ls.html
#> +-- index.html
file_tree(".", max_depth = 3)
#> /home/runner/work/evanverse/evanverse/docs/reference
#> +-- check_pkg.html
#> +-- comb.html
#> +-- compile_palettes.html
#> +-- create_palette.html
#> +-- df2list.html
#> +-- df2vect.html
#> +-- download_batch.html
#> +-- download_gene_ref.html
#> +-- download_geo.html
#> +-- download_url.html
#> +-- figures
#> | +-- logo.png
#> +-- file_info.html
#> +-- file_ls.html
#> +-- index.html
