knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Not yet on CRAN
To install the most recent development version use:
devtools::install_github("reconhub/recontools")
When starting a new RECON package, you can use init_package to quickly create a default package structure:
# from within your session recontools::init_package("mynewpackage") # you can also set a specific path for the new package recontools::init_package("mynewpackage", path = "my_new_package_dir") # you can also disable the CRAN checks recontools::init_package("mynewpackage", check_cran_name = FALSE)
In case you want to create a new package from the command line, run:
Rscript -e "recontools::init_package('mynewpackage')"
Please note that using Rscript creates all optional components (like the MIT license) without asking.
init_package currently does the following:
.Rbuildignore and .gitignore filesR directoryDESCRIPTION filetestthat testsusethis package)README.Rmd.lintr fileNEWS.md filedevtools::document()You can also run package checks for a given package.
# from within your session in a package directory recontools::check_package() # to enable goodpractice::gp checks do recontools::check_package(run_gp = TRUE)
Currently, check_package does the following:
recontools::check_package(run_gp = FALSE)
This package is inspired by the goodpractice and the devtools package. In particular it relies on many functions provided by the devtools package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.