knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This is a demo package as part of a package building tutorial. Slides avaialbel here: https://chrismainey.github.io/PackageBuildSeminar/package_building_presentation.html
You can install the development version of this package from GitHub, if you have devtools
installed, using:
# install.packages("devtools") devtools::install_github("chrismainey/brilliant")
This is a demo package for UCL IHI code club. We built a package with a single function for calculating a percentage. We used roxygen2
to build the NAMESPACE, document the functions, building the help files. We also added a basic unit test using the testthat
package, and an AGPL-3 licence using functions from the usethis
package. usethis
is a great tool for helping with all sorts of development tasks.
library(brilliant) percentage(20,50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.