R/setwd_here.R

Defines functions setwd_here

Documented in setwd_here

#' setwd_here()
#'
#' @description Shortcut for setting the working directory  to the map where the
#' current file is located.
#' @examples
#' setwd_here()
#' @import rstudioapi
#' @export
setwd_here <- function(){
  setwd(dirname(rstudioapi::getActiveDocumentContext()$path))
}
TIvanDijk/TivD documentation built on April 16, 2021, 7:38 a.m.