R/getDir.R

Defines functions getDir

Documented in getDir

getDir <-
function(window){
#This function will create a new directory in a user selected location 
#' @export
File<-' '
dialog <- gtkFileChooserDialog("Enter a name for a new folder and push save", window,
"save", "gtk-cancel", GtkResponseType["cancel"], "gtk-save",
GtkResponseType["accept"])

if (dialog$run() == GtkResponseType["accept"]){
File<-dialog$getFilename()
}
dialog$destroy()
return(File)
}

Try the RSCABS package in your browser

Any scripts or data that you put into this service are public.

RSCABS documentation built on May 1, 2020, 9:06 a.m.