powered by
Sets valid working directory from vector of possible directories
set_valid_wd(possible)
character vector of possible working directores
Sets the working directory to the first valid directory from a list of possible directories.
if (FALSE) { set_valid_wd(c('examples/directory1', 'anotherExample/directory2')) }
Run the code above in your browser using DataLab