Skip to content

Commit

Permalink
renamed crf_status_plot to edc_crf_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
DanChaltiel committed Dec 8, 2024
1 parent ed284a6 commit 578989e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 17 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export(build_lookup)
export(check_subjid)
export(crf_status_plot)
export(edc_browse_excel)
export(edc_crf_plot)
export(edc_data_stop)
export(edc_data_warn)
export(edc_data_warnings)
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ EDCimport is a package designed to easily import data from EDC software TrialMas
- New function `search_for_newer_data()` to search a path (e.g. Downloads) for a newer data archive (#46).
- New function `crf_status_plot()` to show the current database completion status (#48).
- New function `edc_crf_plot()` to show the current database completion status (#48).
- New function `save_sessioninfo()`, to save `sessionInfo()` into a text file (#42).
Expand Down
19 changes: 11 additions & 8 deletions R/crf_status.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#' @examples
#' \dontrun{
#' #import a TM database and use load_list(), then:
#' crf_status_plot() + ggtitle(date_extraction)
#' crf_status_plot(pal=rev(edc_pal_crf()))
#' crf_status_plot(details=TRUE, treat_as_worst="No Data")
#' crf_status_plot(x_label="{crfname} (N={n_id}, n={nrow})")
#' edc_crf_plot() + ggtitle(date_extraction)
#' edc_crf_plot(pal=rev(edc_pal_crf()))
#' edc_crf_plot(details=TRUE, treat_as_worst="No Data")
#' edc_crf_plot(x_label="{crfname} (N={n_id}, n={nrow})")
#'
#' p = crf_status_plot(details=TRUE)
#' p = edc_crf_plot(details=TRUE)
#' p$data$crfstat %>% unique()
#' #> [1] "Incomplete" "No Data Locked" "No Data" "Signed"
#' #> [5] "Partial Monitored" "Monitored" "Complete Locked" "Complete"
Expand All @@ -38,7 +38,7 @@
#' @importFrom scales label_percent
#' @importFrom stringr str_subset
#' @importFrom tibble tibble
crf_status_plot = function(crfstat_col="CRFSTAT",
edc_crf_plot = function(crfstat_col="CRFSTAT",
...,
details=FALSE,
pal = edc_pal_crf(),
Expand Down Expand Up @@ -80,9 +80,12 @@ crf_status_plot = function(crfstat_col="CRFSTAT",
labs(x=NULL, y="Dataset", fill="CRF Status")
}

#' @rdname edc_crf_plot
#' @usage NULL
#' @export
crf_status_plot = edc_crf_plot


#' @rdname crf_status_plot
#' @rdname edc_crf_plot
#' @export
#' @source `ggsci:::ggsci_db$lancet[["lanonc"]] %>% dput()`
edc_pal_crf = function(){
Expand Down
3 changes: 2 additions & 1 deletion _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ reference:
- assert_no_duplicate
- edc_warn_patient_diffs
- edc_warn_extraction_date
- crf_status_plot
- edc_crf_plot
- edc_patient_gridplot
- edc_population_plot
- title: "Project management"
- contents:
Expand Down
15 changes: 8 additions & 7 deletions man/crf_status_plot.Rd → man/edc_crf_plot.Rd

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

0 comments on commit 578989e

Please sign in to comment.