Nothing
#' Spelling and Grammar Addin
#'
#' Call this function as a Rstudio addin to ask GPT to improve spelling and
#' grammar of selected text.
#'
#' @return This function has no return value.
#'
#' @export
#'
#' @examples
#' # Select some text in Rstudio
#' # Then call the function as an RStudio addin
#' \dontrun{
#' gptstudio_spelling_grammar()
#' }
gptstudio_spelling_grammar <- function() {
cli_process_start("Sending query to ChatGPT")
gptstudio_chat_in_source(
task = "Improve spelling and grammar of the text"
)
cli_process_done()
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.