The dir package makes a HTML widget to display a pretty collapsible list of files and folders. This is useful for demonstrating or discussing folder structures.
dir
# install.packages("remotes") remotes::install_github("emitanaka/dir")
This package has one simple function:
dir::listing()
This generates a HTML widget with a pretty collapsible directory listing. See demonstration here.