R/hello.R

Defines functions hello double

Documented in double hello

#' a helper method to print name
#'
#' @return a string
#'
#' @param name input name
#' @export
#' @examples
#' hello("Bob")
hello <- function(name) {
  print(name)
}

#' A helper method to double an integer
#'
#' @param x
#'
#' @return doubled x
#' @export
#' @examples double(10) => 20
double <- function(x) {
  x*2
}


#usethis::use_code_of_conduct()

#usethis::use_tidy_contributing()

#usethis::use_mit_license("David Wei")

#usethis::use_readme_md()

# add tests
#usethis::use_testthat()

# make function file the active window, then run
#usethis::use_test()
davidweinfls/DATA-598-WI20-week-7 documentation built on March 8, 2020, 11:17 p.m.