R/add_sem.R

Defines functions add_sem

Documented in add_sem

#' Insert SEM Section
#'
#' @export
#'

add_sem <- function() {
  sem_url <- "https://raw.githubusercontent.com/dr-JT/semoutput/main/inst/extdata/_extensions/sem.qmd"

  # Make a GET request to retrieve the raw content of the file
  sem_text <- httr::content(httr::GET(sem_url), as = "text")
  rstudioapi::insertText(sem_text)
}
dr-JT/semoutput documentation built on March 25, 2024, 9:18 p.m.