#' Create a Modelling Template in a new .R file in RStudio
#' @importFrom rstudioapi documentNew
#' @export
modelscript <- function() {
documentNew(
text = "###########################################################################
# Prep --------------------------------------------------------------------
###########################################################################
# libraries ---------------------------------------------------------------
# data --------------------------------------------------------------------
# EDA ---------------------------------------------------------------------
# tidy --------------------------------------------------------------------
# visualize ---------------------------------------------------------------
###########################################################################
# Build Model -------------------------------------------------------------
###########################################################################
set.seed(1234)
# 1: Initial Split --------------------------------------------------------
# 2: Preprocessing --------------------------------------------------------
# 3: Model Specification --------------------------------------------------
# 4: Hyperparameter Tuning Specification ----------------------------------
# 5: Bundle into Workflow -------------------------------------------------
# 6: Cross Validation -----------------------------------------------------
# 7: Tune -----------------------------------------------------------------
# 8: Explore Tuning Results -----------------------------------------------
# 9: Finalize Workflow ----------------------------------------------------
# 10: Final Fit -----------------------------------------------------------
# 11: Evaluate ------------------------------------------------------------
",
type = "r"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.