The aim of apaformat
is to provide a collection of convenient functions for APA Formatting useful when writing papers in bookdown
Documentation can be found here
None yet.
To install the latest development snapshot, type following commands into the R console
if (!require('devtools')) install.packages('devtools', quiet=TRUE)
devtools::install_github("markanewman/apaformat", quiet = T)
library(apaformat)
# load libraries
if (!require('devtools')) install.packages('devtools', quiet=TRUE)
if (!require('roxygen2')) install.packages('roxygen2', quiet=TRUE)
if (!require('pkgdown')) install.packages('pkgdown', quiet=TRUE)
# set working directory and clean files that will be regenerated
setwd("C:/repos/apaformat")
unlink(c("./data/*", "./docs/*", "./man/*"), recursive = T)
# recompile the test data and run the tests
testthat::source_dir('./data-raw')
devtools::test()
# add in documentation and github pages
devtools::document()
pkgdown::build_site()
# full check before the package is CRAN ready
devtools::check()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.