#' 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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.