The goal of add2pkg is to create some snippets to develop R packages.
You can install the released version of add2pkg from CRAN with:
install.packages("add2pkg")
And the development version from GitHub with:
# install.packages("devtools")
devtools::install_github("JiaxiangBU/add2pkg")
This is a basic example which shows you how to solve a common problem:
library(add2pkg)
## basic example code
add_me(is_paste = FALSE)
#> Authors@R:
#> person(given = "Jiaxiang",
#> family = "Li",
#> role = c("aut", "cre"),
#> email = "alex.lijiaxiang@foxmail.com",
#> comment = c(ORCID = "https://orcid.org/0000-0003-3196-6492"))
# add_zenodo_citation(readme_path = here::here("../pyks/README.Rmd"))
add_disclaimer()
#> <U+2714> Setting active project to 'D:/work/add2pkg'
#> <h4 align="center">**Code of Conduct**</h4>
#>
#> <h6 align="center">Please note that the `add2pkg` project is released with a [Contributor Code of Conduct](https://github.com/JiaxiangBU/add2pkg/blob/master/CODE_OF_CONDUCT.md).<br>By contributing to this project, you agree to abide by its terms.</h6>
#>
#> <h4 align="center">**License**</h4>
#>
#> <h6 align="center">MIT © [Jiaxiang Li](https://github.com/JiaxiangBU/add2pkg/blob/master/LICENSE.md)</h6>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.