sibling_folder: returns the full path for a sibling folder

Description Usage Arguments Details Value Examples

View source: R/sibling_folder.R

Description

A quick and easy way to get a sibling folder

Usage

1
sibling_folder(destination_folder, parent_level = FALSE)

Arguments

destination_folder

the destination folder you want to reach (in quotes)

parent_level

if true then return the sibling of the parent folder (default = false)

Details

A quick function to access a sibling folder (i.e. a folder with the same parent folder). If parent_level is set as FALSE (defaults to false) it will look on the same level in the directory structure; however if parent_level is set to TRUE then it will look for the sibling folder at the parent level (I hope that makes sense!)

Value

the full path to the destination folder

Examples

1
2
3
4
## Not run: 
To add!

## End(Not run)

MarkGoble/mishMashr documentation built on Oct. 12, 2020, 8:24 p.m.