knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
library(fertile) library(tidyverse) miceps <- system.file("extdata/project_miceps.zip", package = "fertile") %>% sandbox()
Tools to make achieving R project reproducibility easy!
fertile
?R
-specific featuresmiceps
: variable containing path to directory containing following project:
proj_badges(miceps)
$~$
fertile
contains 16 checks on different aspects of reproducibility:
$~$
Run them individually or in customizable groupings, w/ proj_check()
, proj_check_some()
, or proj_check_badge()
# Individual check has_well_commented_code(miceps)
# Combined checks proj_check_badge(miceps, "documentation")
read_csv("/Users/audreybertin/Documents/fertile/project_miceps/mice.csv")
setwd(miceps)
Several data-reading functions built in to fertile
's warning system:
$~$
Customize warning system by:
add_shim()
, add_all_possible_shims()
)# Add stats::write.ftable to the warning system add_shim(func = "write.ftable", package = "stats")
edit_shims()
)unload_shims()
)load_shims()
) --- this is the default setting.You can install fertile
from GitHub with:
# install.packages("remotes") remotes::install_github("baumer-lab/fertile")
citation("fertile")
The fertile
release at the time of publication for the above citation can be found here: https://github.com/baumer-lab/fertile/releases/tag/v1.0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.