R/upload.R

Defines functions upload_dico

Documented in upload_dico

upload_dico <- function(file){
  if(!grepl(".csv$", file) && !grepl(".txt$", file)){
    stop("Uploaded file must be a .csv or .txt file!")
  }
  file.copy(file,paste(.libPaths()[1],"x.ent/dico/",sep="/"))
}

Try the x.ent package in your browser

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

x.ent documentation built on May 2, 2019, 2:14 p.m.