R/Oncomine_datasets_one_page_filenames_empty.R

Defines functions Oncomine_datasets_one_page_filenames_empty

Oncomine_datasets_one_page_filenames_empty<- function(Simple=TRUE){
  files=list.files() #get all the data picture
  txtcheck=files[grepl(pattern = ".txt",x = files)==FALSE]
  docxcheck=txtcheck[grepl(pattern = ".docx",x = txtcheck)==FALSE]
  doccheck=docxcheck[grepl(pattern = ".doc",x = docxcheck)==FALSE]
  if (length(doccheck)==0){
    datasetss=Oncomine_datasets_one_page_filenames_not_empty(files,Simple=Simple)
    return(datasetss)
  }else{
    doccheck1=paste(doccheck,collapse="\n")
    warning("The following files shoul be removed","\n",doccheck1)
    stop("Please make sure ONLY data file end with .txt .doc .docx including in the working directory. Or give object to this function")
  }
}
yikeshu0611/Oncomine documentation built on May 30, 2019, 5:01 a.m.