# load dplyr
library(dplyr)
# Standard/basic usage:
RootPath <- tempdir()
dirMaker(
RootPath = RootPath,
# Input the location of the workflow script RELATIVE to the RootPath
RDoc = NULL,
useHere = FALSE) %>%
# Add paths created by this function to the environment()
list2env(envir = environment())
# Custom OutPathName provided
dirMaker(
RootPath = RootPath,
# Set some custom OutPath info
OutPath = NULL,
OutPathName = "T2T_Output",
# Input the location of the workflow script RELATIVE to the RootPath
RDoc = NULL,
useHere = FALSE) %>%
# Add paths created by this function to the environment()
list2env(envir = environment())
# Set the working directory
# Further customisations are also possible
dirMaker(
RootPath = RootPath,
ScriptPath = "...path/Bee_SDM_paper/BDC_repo/BeeBDC/R",
DiscLifePath = "...path/BDC_repo/DiscoverLife_Data",
OutPathName = "AsianPerspective_Output",
# Input the location of the workflow script RELATIVE to the RootPath
RDoc = NULL,
useHere = FALSE) %>%
# Add paths created by this function to the environment()
list2env(envir = environment())
Run the code above in your browser using DataLab