R/fct_chooseDirectory.R

Defines functions choose_dir

Documented in choose_dir

#' Choose Directory, choose.dir vs tcltk
#'
#' @param caption NA
#'
#' @return NA
#' 
#'

choose_dir <- function(caption = 'Select data directory') {
  if (exists("choose.dir", where="package:utils", mode='function')) {
   a <- utils::choose.dir(caption = caption) 
  }else {
  a <-  tcltk::tk_choose.dir(caption = caption)
  }
  return(a)
}
chasemc/IDBac_App documentation built on Oct. 25, 2022, 7:34 a.m.