Skip to content

Commit

Permalink
[skip style] [skip vbump] Restyle files
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 18, 2024
1 parent 45b1d41 commit 91f5c7c
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions R/teal_data-get_code.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,21 @@
#' @aliases get_code,teal_data-method
#'
#' @export
setMethod("get_code", signature = "teal_data",
definition = function(object, deparse = TRUE, datanames = NULL, names = datanames, ...) {
checkmate::assert_character(datanames, min.len = 1L, null.ok = TRUE)
checkmate::assert_character(names, min.len = 1L, null.ok = TRUE)
checkmate::assert_flag(deparse)
setMethod("get_code",
signature = "teal_data",
definition = function(object, deparse = TRUE, datanames = NULL, names = datanames, ...) {
checkmate::assert_character(datanames, min.len = 1L, null.ok = TRUE)
checkmate::assert_character(names, min.len = 1L, null.ok = TRUE)
checkmate::assert_flag(deparse)

if (!is.null(datanames)) {
lifecycle::deprecate_warn(
when = "0.6.1",
what = "get_code()",
with = "teal.code::get_code()",
always = TRUE
)
if (!is.null(datanames)) {
lifecycle::deprecate_warn(
when = "0.6.1",
what = "get_code()",
with = "teal.code::get_code()",
always = TRUE
)
}
teal.code::get_code(object = object, deparse = deparse, names = names, ...)
}
teal.code::get_code(object = object, deparse = deparse, names = names, ...)
})
)

0 comments on commit 91f5c7c

Please sign in to comment.