R/example_config_file.R

Defines functions example_config_yml

Documented in example_config_yml

#' Example Config yml File
#'
#' Opens an example config file in the active editor.
#' If you already have a config.yml file cut-and-paste the "moodleR" section,
#' and update the respective fields.
#' Alternatively use "save as" to save this file as config.yml
#' It is recommended that you check the config with config::get()
#' @return invisible(TRUE) on success
#' @export
#'
#' @examples
#' \dontrun{
#' example_config_yml()
#' }
example_config_yml <- function(){
  usethis::use_template("config_example.yml", package = "moodleR", open = TRUE)
}

Try the moodleR package in your browser

Any scripts or data that you put into this service are public.

moodleR documentation built on Aug. 15, 2022, 5:09 p.m.