Add to existing sub folder.

sbf_add_sub(..., rm = FALSE, ask = getOption("sbf.ask", TRUE))

Arguments

...

One or more character vectors which are combined together.

rm

A flag specifying whether to remove the folder and all its contents if it already exists.

ask

A flag specifying whether to ask before removing the existing folder.

Value

An invisible string specifying the new sub folder.

Examples

sbf_set_sub("nameofsub")
sbf_add_sub("anothername")
sbf_get_sub()
#> [1] "nameofsub/anothername"
sbf_reset_sub()