R/test_script.R

Defines functions test_function

Documented in test_function

#' test function
#' 
#' performs simple input and output for testing purposes
#' @param input The character input to add to "hello world"
#' @return "hello world" + the input is it is the correct type, else error message
#' @export
test_function <- function(input) {
  
  if (typeof(input) != "character") {
    return("wrong type of input")
  }
  
  output <- paste("hello world", input, sep = " ")
  
  return(output)
}
cheejus2/Intron_Vis documentation built on Dec. 8, 2019, 10:35 a.m.