freshr

CRAN status R CMD CHECK codecov

The goal of freshr is to help you refresh your working environment in Rstudio and create reproducible scripts.

Installation

To install the official CRAN version, run:

install.packages("freshr"")

You can install the development version of freshr like so:

remotes::install_github("shawnlinxl/freshr"")

Example

freshr is meant to be called once at the top of your script. Call it at the top of your main.R script if it is a project with multiple scripts. Source your script and see after the environment is refreshed whether your script contains all the imports and variables needed for it to execute.

Example:

freshr::freshr()

library(ggplot2)
ggplot(mtcars) + geom_point(aes(x = mpg, y = hp))