Skip to content

Commit

Permalink
rename to read_all_xpt
Browse files Browse the repository at this point in the history
fixes #59
  • Loading branch information
DanChaltiel committed Jul 25, 2024
1 parent a9dabcc commit b73bc97
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 60 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export(lastnews_table)
export(load_as_list)
export(load_list)
export(manual_correction)
export(read_all_xpt)
export(read_tm_all_xpt)
export(read_trialmaster)
export(reset_manual_correction)
Expand Down
34 changes: 20 additions & 14 deletions R/trialmaster.R
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ read_trialmaster = function(archive, ..., use_cache="write",
class="edc_tm_no_procformat_warning")
format_file = NULL
}
rtn = read_tm_all_xpt(temp_folder, format_file=format_file,
clean_names_fun=clean_names_fun,
split_mixed=split_mixed,
extend_lookup=extend_lookup,
key_columns=key_columns,
datetime_extraction=extract_datetime,
verbose=verbose)
rtn = read_all_xpt(temp_folder, format_file=format_file,
clean_names_fun=clean_names_fun,
split_mixed=split_mixed,
extend_lookup=extend_lookup,
key_columns=key_columns,
datetime_extraction=extract_datetime,
verbose=verbose)

if(isTRUE(use_cache) || use_cache=="write"){
if(verbose>0) cli_inform("Writing cache file {.file {cache_file}}", class="read_tm_zip")
Expand Down Expand Up @@ -134,13 +134,13 @@ read_trialmaster = function(archive, ..., use_cache="write",
#' @importFrom tibble as_tibble tibble
#' @importFrom tidyselect where
#' @importFrom utils packageVersion
read_tm_all_xpt = function(directory, ..., format_file="procformat.sas",
clean_names_fun=NULL,
split_mixed=FALSE,
extend_lookup=TRUE,
datetime_extraction=NULL,
verbose=getOption("edc_read_verbose", 1),
key_columns="deprecated"){
read_all_xpt = function(directory, ..., format_file="procformat.sas",
clean_names_fun=NULL,
split_mixed=FALSE,
extend_lookup=TRUE,
datetime_extraction=NULL,
verbose=getOption("edc_read_verbose", 1),
key_columns="deprecated"){
check_dots_empty()
reset_manual_correction()
clean_names_fun = get_clean_names_fun(clean_names_fun)
Expand Down Expand Up @@ -263,6 +263,12 @@ read_tm_all_xpt = function(directory, ..., format_file="procformat.sas",
}


#' @rdname read_all_xpt
#' @export
#' @usage NULL
read_tm_all_xpt = read_all_xpt


# Utils ---------------------------------------------------------------------------------------

#' @noRd
Expand Down
91 changes: 46 additions & 45 deletions man/read_tm_all_xpt.Rd → man/read_all_xpt.Rd

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

2 changes: 1 addition & 1 deletion man/search_for_newer_data.Rd

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

0 comments on commit b73bc97

Please sign in to comment.