Skip to content

Commit

Permalink
1154 deprecation for show_rcode_modal (#1217)
Browse files Browse the repository at this point in the history
Close #1154

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed May 16, 2024
1 parent d639140 commit b9677ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion R/show_rcode_modal.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Show `R` code modal
#'
#' @description `r lifecycle::badge("stable")`
#' @description `r lifecycle::badge("deprecated")`
#'
#' Use the [shiny::showModal()] function to show the `R` code inside.
#'
Expand All @@ -14,6 +14,12 @@
#' @references [shiny::showModal()]
#' @export
show_rcode_modal <- function(title = NULL, rcode, session = getDefaultReactiveDomain()) {
lifecycle::deprecate_soft(
when = "0.15.3",
what = "show_rcode_modal()",
details = "This function will be removed in the next release."
)

rcode <- paste(rcode, collapse = "\n")

ns <- session$ns
Expand Down
2 changes: 1 addition & 1 deletion man/show_rcode_modal.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b9677ff

Please sign in to comment.