Skip to content

Commit

Permalink
nocov for deprecation warnings
Browse files Browse the repository at this point in the history
ref #416
  • Loading branch information
wibeasley committed Sep 29, 2022
1 parent dea539c commit 01531fc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/redcap-file-download-oneshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,11 @@ redcap_file_download_oneshot <- function(

#' @export
redcap_download_file_oneshot <- function(...){
# nocov start
warning(
"The function `redcap_download_file_oneshot()` is soft-deprecated as of REDCapR 1.2.0. ",
"Please use `redcap_file_download_oneshot()`."
)
redcap_file_download_oneshot(...)
# nocov end
}
2 changes: 2 additions & 0 deletions R/redcap-file-upload-oneshot.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,11 @@ redcap_file_upload_oneshot <- function(

#' @export
redcap_upload_file_oneshot <- function(...){
# nocov start
warning(
"The function `redcap_upload_file_oneshot()` is soft-deprecated as of REDCapR 1.2.0. ",
"Please use `redcap_file_upload_oneshot()`."
)
redcap_file_upload_oneshot(...)
# nocov end
}
2 changes: 2 additions & 0 deletions R/redcap-instrument-download.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ redcap_instrument_download <- function(

#' @export
redcap_download_instrument <- function(...){
# nocov start
warning(
"The function `redcap_download_instrument()` is soft-deprecated as of REDCapR 1.2.0. ",
"Please use `redcap_instrument_download()`."
)
redcap_instrument_download(...)
# nocov end
}

0 comments on commit 01531fc

Please sign in to comment.