-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dataset describing valid SDTM/IG versions
- Loading branch information
1 parent
3249007
commit c5d87c9
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#' A data.frame with 4 columns and one row per valid SDTM version/IG/IG version | ||
#' combination | ||
#' | ||
#' @format | ||
#' \itemize{ | ||
#' \item{SDTM}{The SDTM version} | ||
#' \item{IG_NAME}{The implementation guide (IG) name being used} | ||
#' \item{IG_VERSION}{The implemetation guide (IG) version} | ||
#' \item{archived}{The SDTM version/IG pair has been archived (and should not | ||
#' be used for current studies)} | ||
#' } | ||
"valid_versions" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#' Create the structure for a new, valid SDTM version | ||
#' | ||
#' @inherit is_valid_sdtm_version | ||
#' @return A tibble with columns for the above information | ||
#' @keywords Internal | ||
new_valid_sdtm_version <- function(sdtm_version, ig_name, ig_version, archived=FALSE) { | ||
tibble::tibble( | ||
SDTM=base::package_version(sdtm_version), | ||
IG_NAME=ig_name, | ||
IG_VERSION=base::package_version(ig_version), | ||
archived=archived | ||
) | ||
} | ||
|
||
valid_versions <- | ||
dplyr::bind_rows( | ||
new_valid_sdtm_version(sdtm_version=1.1, ig_name="SDTMIG", ig_version="3.1.1", archived=TRUE), | ||
new_valid_sdtm_version(sdtm_version=1.2, ig_name="SDTMIG", ig_version="3.1.2", archived=TRUE), | ||
new_valid_sdtm_version(sdtm_version=1.3, ig_name="SDTMIG", ig_version="3.1.3", archived=TRUE), | ||
new_valid_sdtm_version(sdtm_version=1.3, ig_name="SDTMIG-MD", ig_version="1.0", archived=TRUE), | ||
|
||
new_valid_sdtm_version(sdtm_version=1.4, ig_name="SDTMIG", ig_version=3.2), | ||
new_valid_sdtm_version(sdtm_version=1.4, ig_name="SDTMIG-AP", ig_version="1.0"), | ||
new_valid_sdtm_version(sdtm_version=1.5, ig_name="SENDIG", ig_version=c("3.1", "3.1.1")), | ||
new_valid_sdtm_version(sdtm_version=1.6, ig_name="SENDIG-DART", ig_version=1.1), | ||
new_valid_sdtm_version(sdtm_version=1.7, ig_name="SDTMIG", ig_version=3.3), | ||
new_valid_sdtm_version(sdtm_version=1.8, ig_name="SENDIG-AR", ig_version="1.0"), | ||
new_valid_sdtm_version(sdtm_version="2.0", ig_name="SDTMIG", ig_version=3.4) | ||
) | ||
|
||
usethis::use_data(valid_versions, overwrite=TRUE) |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.