monthyear <- function(){
context <- rstudioapi::getActiveDocumentContext()
rstudioapi::insertText(location = context$selection[[1]]$range[[1]],
text = format(Sys.time(), "%B %Y"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.