Skip to content

Commit

Permalink
inst4_upgrade
Browse files Browse the repository at this point in the history
ref #4
  • Loading branch information
wibeasley committed Sep 17, 2024
1 parent 56cbd7f commit 05202cf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
Binary file modified data-public/derived/variable-label.parquet
Binary file not shown.
10 changes: 10 additions & 0 deletions data-public/metadata/variable-label.csv
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,13 @@ inst4_host_cloud,radio,2,"azure",2,"Azure"
inst4_host_cloud,radio,3,"google",3,"Google Cloud Platform (GCP)"
inst4_host_cloud,radio,4,"internal",4,"Internal Platform"
inst4_host_cloud,radio,98,"other",98,"Other {host_cloud_other}"
inst4_upgrade,radio,1,"weekly",1,"Weekly"
inst4_upgrade,radio,2,"biweekly",2,"Biweekly"
inst4_upgrade,radio,3,"monthly",3,"Monthly"
inst4_upgrade,radio,4,"bimonthly",4,"Bimonthly"
inst4_upgrade,radio,5,"quarterly",5,"Quarterly"
inst4_upgrade,radio,6,"biannually",6,"Biannually"
inst4_upgrade,radio,7,"annually",7,"Annually"
inst4_upgrade,radio,8,"as needed",8,"As needed"
inst4_upgrade,radio,9,"as resources permit",9,"As resources permit"
inst4_upgrade,radio,98,"other",98,"Other"
14 changes: 6 additions & 8 deletions manipulation/institution-ellis.R
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ ds <-
map_to_radio( "inst4_server_host") |>
map_to_checkbox("inst4_server_manage") |>
map_to_radio( "inst4_host_cloud") |>
# map_to_checkbox( "inst4_upgrade") |>
map_to_radio( "inst4_upgrade") |>
# map_to_checkbox( "inst4_update_barriers") |>
dplyr::mutate(
inst4_complete = REDCapR::constant_to_form_completion(inst4_complete),
Expand Down Expand Up @@ -604,23 +604,21 @@ checkmate::assert_logical( ds$inst4_ticket_type_jira , an
checkmate::assert_logical( ds$inst4_ticket_type_os_ticket , any.missing=F )
checkmate::assert_logical( ds$inst4_ticket_type_other , any.missing=F )
checkmate::assert_factor( ds$inst4_ticket_like , any.missing=T )
checkmate::assert_character(ds$inst4_version , any.missing=T , pattern="^.{4,5}$" )
checkmate::assert_character(ds$inst4_version_major , any.missing=T , pattern="^.{2,2}$" )
checkmate::assert_logical( ds$inst4_release_standard , any.missing=F )
checkmate::assert_logical( ds$inst4_release_lts , any.missing=F )
checkmate::assert_logical( ds$inst4_release_dont_know , any.missing=F )

checkmate::assert_factor( ds$inst4_server_host , any.missing=T )

checkmate::assert_factor( ds$inst4_server_host , any.missing=T )
checkmate::assert_logical( ds$inst4_server_manage_redcap , any.missing=F )
checkmate::assert_logical( ds$inst4_server_manage_it , any.missing=F )
checkmate::assert_logical( ds$inst4_server_manage_host , any.missing=F )
checkmate::assert_logical( ds$inst4_server_manage_other , any.missing=F )
checkmate::assert_logical( ds$inst4_server_manage_dont_know , any.missing=F )
checkmate::assert_factor( ds$inst4_host_cloud , any.missing=T )
# checkmate::assert_numeric( ds$inst4_upgrade , any.missing=T , lower=1, upper=98 )
checkmate::assert_factor( ds$inst4_upgrade , any.missing=T )
# checkmate::assert_character(ds$inst4_update_barriers , any.missing=T , pattern="^.{1,6}$" )
# checkmate::assert_factor( ds$inst4_complete , any.missing=F )
# checkmate::assert_character(ds$inst4_version , any.missing=T , pattern="^.{4,5}$" )
# checkmate::assert_character(ds$inst4_version_major , any.missing=T , pattern="^.{2,2}$" )
checkmate::assert_factor( ds$inst4_complete , any.missing=F )

# ---- specify-columns-to-upload -----------------------------------------------
# Print colnames that `dplyr::select()` should contain below:
Expand Down

0 comments on commit 05202cf

Please sign in to comment.