Title: | Report of Statistical Findings in 'bookdown' |
---|---|
Description: | A report of statistical findings (RSF) project template is generated using a 'bookdown' format. 'YAML' fields can be further customized. Additional helper functions provide extra features to the RSF. |
Authors: | Derek Chiu [aut, cre] |
Maintainer: | Derek Chiu <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.3.0 |
Built: | 2024-11-14 03:13:22 UTC |
Source: | https://github.com/dchiu911/rsf |
Add generated reports, figures, and HTML libraries to .gitignore
git_ignore_outputs(path = ".", figs_only = TRUE)
git_ignore_outputs(path = ".", figs_only = TRUE)
path |
path of the directory containing the input files |
figs_only |
logical; if |
wd <- tempdir() savedir <- setwd(wd) file.copy(list.files(system.file("extdata", package = "rsf"), full.names = TRUE, all.files = TRUE, no.. = TRUE), ".") file.rename("gitignore", ".gitignore") git_ignore_outputs(figs_only = FALSE) setwd(savedir)
wd <- tempdir() savedir <- setwd(wd) file.copy(list.files(system.file("extdata", package = "rsf"), full.names = TRUE, all.files = TRUE, no.. = TRUE), ".") file.rename("gitignore", ".gitignore") git_ignore_outputs(figs_only = FALSE) setwd(savedir)
Add a References section at the end of the RSF.
use_references(path = ".", number = 99)
use_references(path = ".", number = 99)
path |
path of the directory containing the input files |
number |
number prepended to references Rmd source file. |
wd <- tempdir() savedir <- setwd(wd) file.copy(list.files(system.file("extdata", package = "rsf"), full.names = TRUE), ".") use_references(number = 4) setwd(savedir)
wd <- tempdir() savedir <- setwd(wd) file.copy(list.files(system.file("extdata", package = "rsf"), full.names = TRUE), ".") use_references(number = 4) setwd(savedir)
Opens a new R project using the RSF template. Intended for use in RStudio, not interactively.
use_rsf(path, ...)
use_rsf(path, ...)
path |
project path |
... |
project configurations supported:
|
This function is called when the user selects File > New Project > New Directory > Report of Statistical Findings using bookdown. The directory name and output directory can be specified.