Setup the report filesystem
setup_filesystem.Rd
setup_filesystem
creates the necessary folder structure and optionally clears
old reports. This is a convenience function that combines create_filesystem
and clear_old_reports
.
Examples
# Create folders in a temporary directory
folders <- list(
internal = file.path(tempdir(), "internal"),
public = file.path(tempdir(), "public"),
settings = file.path(tempdir(), "settings")
)
setup_filesystem(folders)
#> $internal
#> [1] "/tmp/RtmpT5sfiO/internal"
#>
#> $public
#> [1] "/tmp/RtmpT5sfiO/public"
#>
#> $settings
#> [1] "/tmp/RtmpT5sfiO/settings"
#>