An open API service indexing awesome lists of open source software.

https://github.com/cwickham/ns

A toy package to practice with namespaces
https://github.com/cwickham/ns

Last synced: 12 months ago
JSON representation

A toy package to practice with namespaces

Awesome Lists containing this project

README

          

# ns

A toy package to play with namespaces as part of the [Building Tidy Tools](https://github.com/cwickham/genentech-build-tidy-tools) workshop.

Get the package with:
```r
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`:
```r
#' My standard deviation function
#'
#' @param x A numeric vector
#' @export
my_sd <- function (x) {
sqrt(var(x))
}
```