Moves up the sub folder hierarchy.

sbf_up_sub(n = 1L, rm = FALSE, ask = getOption("sbf.ask", TRUE))

Arguments

n

A positive int of the number of subfolders to move up.

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/othersub/yetothersub")
sbf_up_sub()
sbf_get_sub()
#> [1] "nameofsub/othersub"
sbf_reset_sub()