R/start_fresh.R

Defines functions start_fresh

Documented in start_fresh

#' Restart R session
#'
#' @return A clean R session
#'
#' @examples
#' \donttest{
#' if (FALSE) {
#' library(phdcocktail)
#' start_fresh()
#'   }
#' }
#'
#' @export
start_fresh <- function() {
  rstudioapi::executeCommand("restartR")
}

Try the phdcocktail package in your browser

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

phdcocktail documentation built on May 29, 2024, 7:12 a.m.