R/fileInputFunc.R

Defines functions fileInputFunc

Documented in fileInputFunc

#' fileInputFunc
#'
#' If input file is empty, use sample file 
#'
#' @note \code{fileInputFunc}
#' @return If no file is uploaded, use sample file
#' @param input, enter correct files
#' @param sampleFile, sampleFile
#'
#' @examples
#'     x<- fileInputFunc()
#'
#'
#' @export
#

fileInputFunc <- function(input = NULL, sampleFile = NULL) {
  if (is.null(sampleFile)) return(NULL)
  if(is.null(input)) {
    sampleFile
  }
  else {
    input
  }
}

Try the crisprseekplus package in your browser

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

crisprseekplus documentation built on Nov. 8, 2020, 5:39 p.m.