|
1 | | -#' Associate an email when publishing an R Markdown document to RStudio Connect |
| 1 | +#' Associate an email when publishing an R Markdown document to Posit Connect |
2 | 2 | #' |
3 | | -#' This function is used to customize emails sent by RStudio Connect in |
| 3 | +#' This function is used to customize emails sent by Posit Connect in |
4 | 4 | #' conjunction with publishing an R Markdown document. It associates a custom |
5 | 5 | #' email message with the main R Markdown document, which Connect can send to |
6 | 6 | #' selected recipients. The main input is a rendered email message, which can be |
|
19 | 19 | #' @param subject An option to specify the the email subject while attaching the |
20 | 20 | #' email object. |
21 | 21 | #' @param attachments A vector of attachments for the Connect email. These files |
22 | | -#' can be any of those deployed when publishing to RStudio Connect, and, any |
| 22 | +#' can be any of those deployed when publishing to Posit Connect, and, any |
23 | 23 | #' generated files (via R Markdown rendering). |
24 | 24 | #' @param attach_output Should the rendered output of the main R Markdown |
25 | 25 | #' document be included as an email attachment? By default, this is `FALSE`. |
@@ -93,7 +93,7 @@ attach_connect_email <- function( |
93 | 93 | } |
94 | 94 | } |
95 | 95 |
|
96 | | - # Set the RStudio Connect output metadata options for the email message |
| 96 | + # Set the Posit Connect output metadata options for the email message |
97 | 97 | # body and for the images therein |
98 | 98 | rmarkdown::output_metadata$set(rsc_email_body_html = email$html_str) |
99 | 99 | rmarkdown::output_metadata$set(rsc_email_images = email$images) |
@@ -128,7 +128,7 @@ attach_connect_email <- function( |
128 | 128 | invisible() |
129 | 129 | } |
130 | 130 |
|
131 | | -#' Suppress any scheduled emailing in RStudio Connect |
| 131 | +#' Suppress any scheduled emailing in Posit Connect |
132 | 132 | #' |
133 | 133 | #' This function is useful for suppressing the scheduled emailing of a published |
134 | 134 | #' R Markdown document. It can be invoked anywhere in the R Markdown document |
@@ -171,7 +171,7 @@ create_rmd_preview_message <- function(subject = NULL) { |
171 | 171 | paste0( |
172 | 172 | "<div style=\"text-align: center; background:#fcfcfc\">", |
173 | 173 | "<h2 style=\"margin-bottom: 0; padding-bottom: 0;\">", |
174 | | - "This is an email preview for RStudio Connect</h2>", |
| 174 | + "This is an email preview for Posit Connect</h2>", |
175 | 175 | "<p style=\"text-align: center; background:#fcfcfc; ", |
176 | 176 | "padding-top: 0; margin-top: 0;\">", |
177 | 177 | "Use <code>attach_connect_email(preview = FALSE)</code> ", |
|
0 commit comments