Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Chan committed Sep 13, 2024
1 parent 7967a51 commit a18cda9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 11 additions & 1 deletion R/deprec-split.R → R/split.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
#' @description
#' `r lifecycle::badge("deprecated")`
#'
#' This function is *deprecated*. Please use the argument
#' `max_gb_size` in the function xportr_write()` instead.
#'
#' Per the FDA Study Data Technical Conformance
#' Guide(https://www.fda.gov/media/88173/download) section 3.3.2, dataset files
#' sizes shouldn't exceed 5 GB. If datasets are large enough, they should be
Expand Down Expand Up @@ -32,7 +35,14 @@
#'
#' adlb <- xportr_split(adlb, "LBCAT")
xportr_split <- function(.df, split_by = NULL) {
.Deprecated("xportr_write(max_size_gb = ..")
lifecycle::deprecate_warn(
when = "0.5.0",
what = "xportr_split()",
with = "xportr_write()",
details = "Please use the argument `max_gb_size` in the
function xportr_write() instead` instead."
)

attr(.df, "_xportr.split_by_") <- split_by
return(.df)
}
Expand Down
5 changes: 4 additions & 1 deletion man/xportr_split.Rd

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

0 comments on commit a18cda9

Please sign in to comment.