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
- Host: GitHub
- URL: https://github.com/cwickham/ns
- Owner: cwickham
- License: other
- Created: 2020-09-14T21:59:03.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-15T19:26:21.000Z (almost 6 years ago)
- Last Synced: 2025-04-02T01:20:03.646Z (about 1 year ago)
- Language: R
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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))
}
```