A toy package to play with namespaces as part of the Building Tidy Tools workshop.
Get the package with:
usethis::create_from_github("cwickham/ns", fork = FALSE)
If you want to create the package from scratch locally:
create_package("~/Desktop/ns")
use_mit_license("Charlotte Wickham")
use_r("my_sd")
- Add to
R/my_sd.R
:#' My standard deviation function #' #' @param x A numeric vector #' @export my_sd <- function (x) { sqrt(var(x)) }