R/monthyear.R

Defines functions monthyear

monthyear <- function(){
  context <- rstudioapi::getActiveDocumentContext()

  rstudioapi::insertText(location = context$selection[[1]]$range[[1]],
                         text = format(Sys.time(), "%B %Y"))
}
EstherHerbert/Useful.functions documentation built on Jan. 31, 2025, 10:41 a.m.