knitr::opts_knit$set(root.dir = here::here(""))
library(magrittr)

clean

dir(here::here("data"), full.names = T) %>% file.remove()
rm(list = ls(envir = globalenv(), all = T))  # clean data in current R session

Process raw data

Afterward

devtools::test()     # test the new data
roxygen2::roxygenize() # you may also have edited data documentation

system("R CMD INSTALL --no-multiarch --with-keep.source .")
devtools::reload()   # now you can use the new data in current R session 


dongzhuoer/minir documentation built on July 28, 2020, 7:23 a.m.