Creates one to three nested folders (if not existing) under the current working directory and returns their names and absolute paths.
Value
List with elements:
- folder_name
Relative path to the created folder
- abspath
Absolute path ending with '/'
Examples
creat_folder(file.path(tempdir(), "1-result"))
#> $folder_name
#> [1] "/tmp/RtmpMGdUJv/1-result"
#>
#> $abspath
#> [1] "/tmp/RtmpMGdUJv/1-result/"
#>
creat_folder(file.path(tempdir(), "1-result"), "figures", "correlation")
#> $folder_name
#> [1] "/tmp/RtmpMGdUJv/1-result/figures/correlation"
#>
#> $abspath
#> [1] "/tmp/RtmpMGdUJv/1-result/figures/correlation/"
#>