From a64078ab981bc55aa7d58a6f1c882d8c5fd55641 Mon Sep 17 00:00:00 2001 From: Philip Chase Date: Mon, 29 Sep 2025 16:47:59 -0400 Subject: [PATCH] Move more test data to test scope Reconstruct make_test_data.R. Convert rda to rds as we move them to test scope. Delete 3 more man pages. --- R/data.R | 347 ------------------ data/invoice_line_item_test_data.rda | Bin 1912 -> 0 bytes data/one_deleted_project_record.rda | Bin 2011 -> 0 bytes data/projects_table_fragment.rda | Bin 2274 -> 0 bytes man/invoice_line_item_test_data.Rd | 46 --- man/one_deleted_project_record.Rd | 167 --------- man/projects_table_fragment.Rd | 167 --------- .../make_test_data.R | 3 +- .../testthat/redcap_projects/make_test_data.R | 45 ++- .../one_deleted_project_record.rds | Bin 0 -> 2044 bytes .../projects_table_fragment.rds | Bin 0 -> 2321 bytes .../redcap_projects_test_data.rda | Bin 2555 -> 0 bytes .../redcap_projects_test_data.rds | Bin 0 -> 2582 bytes tests/testthat/test-redcap_projects.R | 4 +- 14 files changed, 40 insertions(+), 739 deletions(-) delete mode 100644 data/invoice_line_item_test_data.rda delete mode 100644 data/one_deleted_project_record.rda delete mode 100644 data/projects_table_fragment.rda delete mode 100644 man/invoice_line_item_test_data.Rd delete mode 100644 man/one_deleted_project_record.Rd delete mode 100644 man/projects_table_fragment.Rd create mode 100644 tests/testthat/redcap_projects/one_deleted_project_record.rds create mode 100644 tests/testthat/redcap_projects/projects_table_fragment.rds delete mode 100644 tests/testthat/redcap_projects/redcap_projects_test_data.rda create mode 100644 tests/testthat/redcap_projects/redcap_projects_test_data.rds diff --git a/R/data.R b/R/data.R index 8f6f45f9..ae37d2ff 100644 --- a/R/data.R +++ b/R/data.R @@ -1,38 +1,3 @@ -#' Sample data for invoice_line_item table -#' -#' @format -#' \describe{ -#' \item{\code{id}}{the primary key} -#' \item{\code{service_identifier}}{either a redcap project ID, or redcap username} -#' \item{\code{service_type_code}}{a numeric code that uniquely identifies the service_type} -#' \item{\code{service_instance_id}}{a numeric code that uniquely identifies the service_instance} -#' \item{\code{ctsi_study_id}}{CSBT's unique identifier for a service} -#' \item{\code{name_of_service}}{name of the service} -#' \item{\code{name_of_service_instance}}{name of the study} -#' \item{\code{other_system_invoicing_comments}}{additional invoice information, either project url, or sponsor and pi} -#' \item{\code{price_of_service}}{price of the service, in US dollars} -#' \item{\code{qty_provided}}{quantity provided} -#' \item{\code{amount_due}}{amount due, in US dollars} -#' \item{\code{fiscal_year}}{fiscal year of the invoice} -#' \item{\code{month_invoiced}}{month of the invoice} -#' \item{\code{pi_last_name}}{last name of the person invoiced} -#' \item{\code{pi_first_name}}{first name of the person invoiced} -#' \item{\code{pi_email}}{email of the person invoiced} -#' \item{\code{gatorlink}}{gatorlink of the person invoiced} -#' \item{\code{reason}}{reason for the invoice} -#' \item{\code{status}}{status of the invoice} -#' \item{\code{sender}}{character: message sender, typically an email address} -#' \item{\code{recipient}}{character: message recipient, typically an email address} -#' \item{\code{date_sent}}{POSIXct: date CTSI sent the message} -#' \item{\code{date_received}}{POSIXct: date CTSIT received the email} -#' \item{\code{script_name}}{character: the script that created this record} -#' \item{\code{created}}{created at timestamp} -#' \item{\code{updated}}{updated at timestamp} -#' } -#' -#' @source \url{https://github.com/ctsit/rcc.billing/issues/3} -"invoice_line_item_test_data" - #' @title CTS-IT Staff #' @description usernames of CTS-IT staff #' @format A data frame with 6 rows and 1 variable: @@ -54,318 +19,6 @@ #'} "ctsit_staff_employment_periods" -#' @title one_deleted_project_record -#' @description A single REDCap project record for a deleted project -#' @format A data frame with 1 rows and 149 variables: -#' \describe{ -#' \item{\code{project_id}}{double} -#' \item{\code{project_name}}{character} -#' \item{\code{app_title}}{character} -#' \item{\code{status}}{integer} -#' \item{\code{creation_time}}{double} -#' \item{\code{production_time}}{double} -#' \item{\code{inactive_time}}{double} -#' \item{\code{completed_time}}{double} -#' \item{\code{completed_by}}{character} -#' \item{\code{data_locked}}{integer} -#' \item{\code{log_event_table}}{character} -#' \item{\code{created_by}}{integer} -#' \item{\code{draft_mode}}{integer} -#' \item{\code{surveys_enabled}}{integer} -#' \item{\code{repeatforms}}{integer} -#' \item{\code{scheduling}}{integer} -#' \item{\code{purpose}}{integer} -#' \item{\code{purpose_other}}{character} -#' \item{\code{show_which_records}}{integer} -#' \item{\code{__SALT__}}{character} -#' \item{\code{count_project}}{integer} -#' \item{\code{investigators}}{character} -#' \item{\code{project_note}}{character} -#' \item{\code{online_offline}}{integer} -#' \item{\code{auth_meth}}{character} -#' \item{\code{double_data_entry}}{integer} -#' \item{\code{project_language}}{character} -#' \item{\code{project_encoding}}{character} -#' \item{\code{is_child_of}}{character} -#' \item{\code{date_shift_max}}{integer} -#' \item{\code{institution}}{character} -#' \item{\code{site_org_type}}{character} -#' \item{\code{grant_cite}}{character} -#' \item{\code{project_contact_name}}{character} -#' \item{\code{project_contact_email}}{character} -#' \item{\code{headerlogo}}{character} -#' \item{\code{auto_inc_set}}{integer} -#' \item{\code{custom_data_entry_note}}{character} -#' \item{\code{custom_index_page_note}}{character} -#' \item{\code{order_id_by}}{character} -#' \item{\code{custom_reports}}{character} -#' \item{\code{report_builder}}{character} -#' \item{\code{disable_data_entry}}{integer} -#' \item{\code{google_translate_default}}{character} -#' \item{\code{require_change_reason}}{integer} -#' \item{\code{dts_enabled}}{integer} -#' \item{\code{project_pi_firstname}}{character} -#' \item{\code{project_pi_mi}}{character} -#' \item{\code{project_pi_lastname}}{character} -#' \item{\code{project_pi_email}}{character} -#' \item{\code{project_pi_alias}}{character} -#' \item{\code{project_pi_username}}{character} -#' \item{\code{project_pi_pub_exclude}}{integer} -#' \item{\code{project_pub_matching_institution}}{character} -#' \item{\code{project_irb_number}}{character} -#' \item{\code{project_grant_number}}{character} -#' \item{\code{history_widget_enabled}}{integer} -#' \item{\code{secondary_pk}}{character} -#' \item{\code{secondary_pk_display_value}}{integer} -#' \item{\code{secondary_pk_display_label}}{integer} -#' \item{\code{custom_record_label}}{character} -#' \item{\code{display_project_logo_institution}}{integer} -#' \item{\code{imported_from_rs}}{integer} -#' \item{\code{display_today_now_button}}{integer} -#' \item{\code{auto_variable_naming}}{integer} -#' \item{\code{randomization}}{integer} -#' \item{\code{enable_participant_identifiers}}{integer} -#' \item{\code{survey_email_participant_field}}{character} -#' \item{\code{survey_phone_participant_field}}{character} -#' \item{\code{data_entry_trigger_url}}{character} -#' \item{\code{template_id}}{integer} -#' \item{\code{date_deleted}}{double} -#' \item{\code{data_resolution_enabled}}{integer} -#' \item{\code{field_comment_edit_delete}}{integer} -#' \item{\code{realtime_webservice_enabled}}{integer} -#' \item{\code{realtime_webservice_type}}{character} -#' \item{\code{realtime_webservice_offset_days}}{double} -#' \item{\code{realtime_webservice_offset_plusminus}}{character} -#' \item{\code{last_logged_event}}{double} -#' \item{\code{edoc_upload_max}}{integer} -#' \item{\code{file_attachment_upload_max}}{integer} -#' \item{\code{survey_queue_custom_text}}{character} -#' \item{\code{survey_queue_hide}}{integer} -#' \item{\code{survey_auth_enabled}}{integer} -#' \item{\code{survey_auth_field1}}{character} -#' \item{\code{survey_auth_event_id1}}{integer} -#' \item{\code{survey_auth_field2}}{character} -#' \item{\code{survey_auth_event_id2}}{integer} -#' \item{\code{survey_auth_field3}}{character} -#' \item{\code{survey_auth_event_id3}}{integer} -#' \item{\code{survey_auth_min_fields}}{character} -#' \item{\code{survey_auth_apply_all_surveys}}{integer} -#' \item{\code{survey_auth_custom_message}}{character} -#' \item{\code{survey_auth_fail_limit}}{integer} -#' \item{\code{survey_auth_fail_window}}{integer} -#' \item{\code{twilio_enabled}}{integer} -#' \item{\code{twilio_modules_enabled}}{character} -#' \item{\code{twilio_hide_in_project}}{integer} -#' \item{\code{twilio_account_sid}}{character} -#' \item{\code{twilio_auth_token}}{character} -#' \item{\code{twilio_from_number}}{double} -#' \item{\code{twilio_voice_language}}{character} -#' \item{\code{twilio_option_voice_initiate}}{integer} -#' \item{\code{twilio_option_sms_initiate}}{integer} -#' \item{\code{twilio_option_sms_invite_make_call}}{integer} -#' \item{\code{twilio_option_sms_invite_receive_call}}{integer} -#' \item{\code{twilio_option_sms_invite_web}}{integer} -#' \item{\code{twilio_default_delivery_preference}}{character} -#' \item{\code{twilio_request_inspector_checked}}{double} -#' \item{\code{twilio_request_inspector_enabled}}{integer} -#' \item{\code{twilio_append_response_instructions}}{integer} -#' \item{\code{twilio_multiple_sms_behavior}}{character} -#' \item{\code{twilio_delivery_preference_field_map}}{character} -#' \item{\code{two_factor_exempt_project}}{integer} -#' \item{\code{two_factor_force_project}}{integer} -#' \item{\code{disable_autocalcs}}{integer} -#' \item{\code{custom_public_survey_links}}{character} -#' \item{\code{pdf_custom_header_text}}{character} -#' \item{\code{pdf_show_logo_url}}{integer} -#' \item{\code{pdf_hide_secondary_field}}{integer} -#' \item{\code{pdf_hide_record_id}}{integer} -#' \item{\code{shared_library_enabled}}{integer} -#' \item{\code{allow_delete_record_from_log}}{integer} -#' \item{\code{delete_file_repository_export_files}}{integer} -#' \item{\code{custom_project_footer_text}}{character} -#' \item{\code{custom_project_footer_text_link}}{character} -#' \item{\code{google_recaptcha_enabled}}{integer} -#' \item{\code{datamart_allow_repeat_revision}}{integer} -#' \item{\code{datamart_allow_create_revision}}{integer} -#' \item{\code{datamart_enabled}}{integer} -#' \item{\code{break_the_glass_enabled}}{integer} -#' \item{\code{datamart_cron_enabled}}{integer} -#' \item{\code{datamart_cron_end_date}}{double} -#' \item{\code{fhir_include_email_address_project}}{integer} -#' \item{\code{file_upload_vault_enabled}}{integer} -#' \item{\code{file_upload_versioning_enabled}}{integer} -#' \item{\code{missing_data_codes}}{character} -#' \item{\code{record_locking_pdf_vault_enabled}}{integer} -#' \item{\code{record_locking_pdf_vault_custom_text}}{character} -#' \item{\code{fhir_cdp_auto_adjudication_enabled}}{integer} -#' \item{\code{fhir_cdp_auto_adjudication_cronjob_enabled}}{integer} -#' \item{\code{project_dashboard_min_data_points}}{integer} -#' \item{\code{bypass_branching_erase_field_prompt}}{integer} -#' \item{\code{protected_email_mode}}{integer} -#' \item{\code{protected_email_mode_custom_text}}{character} -#' \item{\code{protected_email_mode_trigger}}{character} -#' \item{\code{protected_email_mode_logo}}{integer} -#' \item{\code{hide_filled_forms}}{integer} -#' \item{\code{form_activation_survey_autocontinue}}{integer} -#' } -"one_deleted_project_record" - -#' @title projects_table_fragment -#' @description a portion of a REDCap project table used to make test datasets -#' @format A data frame with 4 rows and 149 variables: -#' \describe{ -#' \item{\code{project_id}}{double} -#' \item{\code{project_name}}{character} -#' \item{\code{app_title}}{character} -#' \item{\code{status}}{integer} -#' \item{\code{creation_time}}{double} -#' \item{\code{production_time}}{double} -#' \item{\code{inactive_time}}{double} -#' \item{\code{completed_time}}{double} -#' \item{\code{completed_by}}{character} -#' \item{\code{data_locked}}{integer} -#' \item{\code{log_event_table}}{character} -#' \item{\code{created_by}}{integer} -#' \item{\code{draft_mode}}{integer} -#' \item{\code{surveys_enabled}}{integer} -#' \item{\code{repeatforms}}{integer} -#' \item{\code{scheduling}}{integer} -#' \item{\code{purpose}}{integer} -#' \item{\code{purpose_other}}{character} -#' \item{\code{show_which_records}}{integer} -#' \item{\code{__SALT__}}{character} -#' \item{\code{count_project}}{integer} -#' \item{\code{investigators}}{character} -#' \item{\code{project_note}}{character} -#' \item{\code{online_offline}}{integer} -#' \item{\code{auth_meth}}{character} -#' \item{\code{double_data_entry}}{integer} -#' \item{\code{project_language}}{character} -#' \item{\code{project_encoding}}{character} -#' \item{\code{is_child_of}}{character} -#' \item{\code{date_shift_max}}{integer} -#' \item{\code{institution}}{character} -#' \item{\code{site_org_type}}{character} -#' \item{\code{grant_cite}}{character} -#' \item{\code{project_contact_name}}{character} -#' \item{\code{project_contact_email}}{character} -#' \item{\code{headerlogo}}{character} -#' \item{\code{auto_inc_set}}{integer} -#' \item{\code{custom_data_entry_note}}{character} -#' \item{\code{custom_index_page_note}}{character} -#' \item{\code{order_id_by}}{character} -#' \item{\code{custom_reports}}{character} -#' \item{\code{report_builder}}{character} -#' \item{\code{disable_data_entry}}{integer} -#' \item{\code{google_translate_default}}{character} -#' \item{\code{require_change_reason}}{integer} -#' \item{\code{dts_enabled}}{integer} -#' \item{\code{project_pi_firstname}}{character} -#' \item{\code{project_pi_mi}}{character} -#' \item{\code{project_pi_lastname}}{character} -#' \item{\code{project_pi_email}}{character} -#' \item{\code{project_pi_alias}}{character} -#' \item{\code{project_pi_username}}{character} -#' \item{\code{project_pi_pub_exclude}}{integer} -#' \item{\code{project_pub_matching_institution}}{character} -#' \item{\code{project_irb_number}}{character} -#' \item{\code{project_grant_number}}{character} -#' \item{\code{history_widget_enabled}}{integer} -#' \item{\code{secondary_pk}}{character} -#' \item{\code{secondary_pk_display_value}}{integer} -#' \item{\code{secondary_pk_display_label}}{integer} -#' \item{\code{custom_record_label}}{character} -#' \item{\code{display_project_logo_institution}}{integer} -#' \item{\code{imported_from_rs}}{integer} -#' \item{\code{display_today_now_button}}{integer} -#' \item{\code{auto_variable_naming}}{integer} -#' \item{\code{randomization}}{integer} -#' \item{\code{enable_participant_identifiers}}{integer} -#' \item{\code{survey_email_participant_field}}{character} -#' \item{\code{survey_phone_participant_field}}{character} -#' \item{\code{data_entry_trigger_url}}{character} -#' \item{\code{template_id}}{integer} -#' \item{\code{date_deleted}}{double} -#' \item{\code{data_resolution_enabled}}{integer} -#' \item{\code{field_comment_edit_delete}}{integer} -#' \item{\code{realtime_webservice_enabled}}{integer} -#' \item{\code{realtime_webservice_type}}{character} -#' \item{\code{realtime_webservice_offset_days}}{double} -#' \item{\code{realtime_webservice_offset_plusminus}}{character} -#' \item{\code{last_logged_event}}{double} -#' \item{\code{edoc_upload_max}}{integer} -#' \item{\code{file_attachment_upload_max}}{integer} -#' \item{\code{survey_queue_custom_text}}{character} -#' \item{\code{survey_queue_hide}}{integer} -#' \item{\code{survey_auth_enabled}}{integer} -#' \item{\code{survey_auth_field1}}{character} -#' \item{\code{survey_auth_event_id1}}{integer} -#' \item{\code{survey_auth_field2}}{character} -#' \item{\code{survey_auth_event_id2}}{integer} -#' \item{\code{survey_auth_field3}}{character} -#' \item{\code{survey_auth_event_id3}}{integer} -#' \item{\code{survey_auth_min_fields}}{character} -#' \item{\code{survey_auth_apply_all_surveys}}{integer} -#' \item{\code{survey_auth_custom_message}}{character} -#' \item{\code{survey_auth_fail_limit}}{integer} -#' \item{\code{survey_auth_fail_window}}{integer} -#' \item{\code{twilio_enabled}}{integer} -#' \item{\code{twilio_modules_enabled}}{character} -#' \item{\code{twilio_hide_in_project}}{integer} -#' \item{\code{twilio_account_sid}}{character} -#' \item{\code{twilio_auth_token}}{character} -#' \item{\code{twilio_from_number}}{double} -#' \item{\code{twilio_voice_language}}{character} -#' \item{\code{twilio_option_voice_initiate}}{integer} -#' \item{\code{twilio_option_sms_initiate}}{integer} -#' \item{\code{twilio_option_sms_invite_make_call}}{integer} -#' \item{\code{twilio_option_sms_invite_receive_call}}{integer} -#' \item{\code{twilio_option_sms_invite_web}}{integer} -#' \item{\code{twilio_default_delivery_preference}}{character} -#' \item{\code{twilio_request_inspector_checked}}{double} -#' \item{\code{twilio_request_inspector_enabled}}{integer} -#' \item{\code{twilio_append_response_instructions}}{integer} -#' \item{\code{twilio_multiple_sms_behavior}}{character} -#' \item{\code{twilio_delivery_preference_field_map}}{character} -#' \item{\code{two_factor_exempt_project}}{integer} -#' \item{\code{two_factor_force_project}}{integer} -#' \item{\code{disable_autocalcs}}{integer} -#' \item{\code{custom_public_survey_links}}{character} -#' \item{\code{pdf_custom_header_text}}{character} -#' \item{\code{pdf_show_logo_url}}{integer} -#' \item{\code{pdf_hide_secondary_field}}{integer} -#' \item{\code{pdf_hide_record_id}}{integer} -#' \item{\code{shared_library_enabled}}{integer} -#' \item{\code{allow_delete_record_from_log}}{integer} -#' \item{\code{delete_file_repository_export_files}}{integer} -#' \item{\code{custom_project_footer_text}}{character} -#' \item{\code{custom_project_footer_text_link}}{character} -#' \item{\code{google_recaptcha_enabled}}{integer} -#' \item{\code{datamart_allow_repeat_revision}}{integer} -#' \item{\code{datamart_allow_create_revision}}{integer} -#' \item{\code{datamart_enabled}}{integer} -#' \item{\code{break_the_glass_enabled}}{integer} -#' \item{\code{datamart_cron_enabled}}{integer} -#' \item{\code{datamart_cron_end_date}}{double} -#' \item{\code{fhir_include_email_address_project}}{integer} -#' \item{\code{file_upload_vault_enabled}}{integer} -#' \item{\code{file_upload_versioning_enabled}}{integer} -#' \item{\code{missing_data_codes}}{character} -#' \item{\code{record_locking_pdf_vault_enabled}}{integer} -#' \item{\code{record_locking_pdf_vault_custom_text}}{character} -#' \item{\code{fhir_cdp_auto_adjudication_enabled}}{integer} -#' \item{\code{fhir_cdp_auto_adjudication_cronjob_enabled}}{integer} -#' \item{\code{project_dashboard_min_data_points}}{integer} -#' \item{\code{bypass_branching_erase_field_prompt}}{integer} -#' \item{\code{protected_email_mode}}{integer} -#' \item{\code{protected_email_mode_custom_text}}{character} -#' \item{\code{protected_email_mode_trigger}}{character} -#' \item{\code{protected_email_mode_logo}}{integer} -#' \item{\code{hide_filled_forms}}{integer} -#' \item{\code{form_activation_survey_autocontinue}}{integer} -#' } -"projects_table_fragment" - #' @title csbt_column_names #' @description Column names useful for CTSI-IT billing #' @format A data frame with 12 rows and 2 variables: diff --git a/data/invoice_line_item_test_data.rda b/data/invoice_line_item_test_data.rda deleted file mode 100644 index 777b5b03e3c9f572c642580fbcc2f0ba29092339..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1912 zcmV-;2Z#7VT4*^jL0KkKS^uj(*Z>NRfB*mg{q6PF|Nj5~-f_SG|M9|**%K9%0SyQV zC{hprU>D#A{{cV%0000001+h6X)jFlXpzBEHsaO2 zZhs$7lgsLPonJTar1x8!H)}lWb4fgqKDAk~9O$$QM=sElrR86R_oJa}B#Me4qDn|| zS(c)DwcX>ilNB(M9@P&=dcCT-H3;I7Vk`0KGE{r{ztijcIx=}M#dY2nx3i;G1GlYc z%=%8gk9G3y`=0aSe}-N^>Sui3JZ?q)Kcf}zMSptCA^E?4+B`PqxN30a<`O4VtM6N# z`RyYVbdSe}Po;&gKA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|{5yIIR3}YA?Gu?`gfY?%`i6V@57GK2@>ZU1gi+6a8 z$@=~99jxHZm~K2r&n-mp1i6#en0cyTU2D!WCes>t)Db{}b8ys%lz85KT3>UIIbn8A zEZLL4SYqGXbs*t{)IuTcBoe}{1AxvulrsPT diff --git a/data/projects_table_fragment.rda b/data/projects_table_fragment.rda deleted file mode 100644 index 235a5d817537be6bc3ed3c6419f428b288aebdc0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2274 zcmV<82p#uAT4*^jL0KkKSuEitb^r=R|M&m@|Ns7f|J841-)g`A|M9>8iU1G*KmY(h z00BS+;0eC@eA(k}9?ss?BUiT&02&-Zi98a72?X^ChKz=j!c8_)&_hEI$+UwY007Vc z01P!SK?a(dnnTpnKxohbqd?FA8USPf0imXYKn?%^00E!?000dJfB*mikOqJNlTuKV zWf}pYpa1{>G&BGJ&;Zjw13(%8MIk94sXr<-84Q{RhCl{`L7+4PLqGH{aJ zBuEehXhhRVvYx2)@~5QqhME}}8UO$q4FCWKsCg!hHA|;Fgbl+`NF`FGM6NS2IO#!$XVZu@irV13m0%-_s3qB|w#Arc`JJ+Oz% z_bQZ#Mt02gwcu!T^kmyA*PDNenQ3F6Mb6by8PGClq9h=ODKEH;mpcvhV4(Uc6zH4d zX@!Omi{EET1iN~E+CHYRV_ZQ9$#g;lbAZw9*Nd0+g=!ch{dd7E+pCCP_>-4tgzU%YTD#EZF90*e*BmU$G5cg#hcnr=gp@!OD>lcnNlgvbirM!eX`Y6QH1zDbN>YWUsa0MmD?B8T35*Pf z=D$-7(8U8P{?QF&kn)N#St;ORBPvdeo0&N3bLn(%D@L3>%!CO*kR-t*0Vqcpfkc`> zK(MM~LhMN9LJFiq$7O_pKS%^5%;#1T(^DCe7Hvf_6-d%jQ%5$XB3UTFTCAX?7MQS> z0VD#gLsU~Kf>kQQl_d#=l!+KgaU>_45=^rYBI?N-JEZ8wDA#blbFIZ( z3uY;nE~Y7oBzJT`4G#UnyDW^W%riqGNT4^cnu2%-5t+xjsIYiAiqRw+eFkVipb~Q} zmUbygQgn(Hh=&Pb2VWBloi>o{W zC@X|h)ck>;iirjTH*n&H!Qn8V5vFT--7`W~nLazQfMzEOJc3;1Dq!j=6fi+z=va#I zM|AuDh84qB4wF{8ti0dssJyLk^&(y94^()y-LxKdreB}HS}+mOam7y;b`&z9Q<>ZTYRH@Y@xOLQL1FvDO$}9{TB!{kv6q~@}3SCr1 zL=K>387l3vGu&VokQrR#3F6Jh zQen{VF4ZAc@$)W5B^f@St_^NgX$n-o4FcZLrKqDI=ITtL0Ih-~D=gjOJuL6mdY zDqV%2KKn?xL4aOdq}Aa-JvY6qmFTEFf@Fuz3B=NC5RxDYbTf`ict zt_mz>1K_ZaCN07ibc$P4IeUM*&mE(P_v;KpV@9KE>`fPH?qV2r5R!MP;*J#&>r`e` zR#3HG*>-2=j*O-fl8pVWpXIsq0Z?`;QO*lVfIj8c4#sjBzWxVke5RuSOPM`W4_?J@ zvB?*cX^lK82%teZxN1a8x=rQZ?YhqIVs_KV@chXH#y>^sSM$6D|o7OpA#U83X*%qMYmsv-h`n{0n!FdTIH}wyZk!JLr|b zWzrVTramLcBtocEMtH=UQgj|plO-}x5EUS_M@wvgYHce;^6yB2!Vh3HI_3n?ce&uc zeu25hO%2IJ5g?SC$TgN7)iV{T;S!YPd2+ithQTY9<9P$g#8S3WFM`56U`!YU(R=}D z1r@g`P+5|$&PLVSkjymf$NJ*&Yma9fuc%fs)}~HTu2yWr{1l6=F_eak$xM)x%+N!J z2hcL~L0%B*Z+GdC%3-;>F6MQ w2eP3V4220OcKKJ$4sxVuCr0w7r38f$FUGJWDv3UVD4+3nBvXY60?rawV5Q&=fdBvi diff --git a/man/invoice_line_item_test_data.Rd b/man/invoice_line_item_test_data.Rd deleted file mode 100644 index e29a22a6..00000000 --- a/man/invoice_line_item_test_data.Rd +++ /dev/null @@ -1,46 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R -\docType{data} -\name{invoice_line_item_test_data} -\alias{invoice_line_item_test_data} -\title{Sample data for invoice_line_item table} -\format{ -\describe{ - \item{\code{id}}{the primary key} - \item{\code{service_identifier}}{either a redcap project ID, or redcap username} - \item{\code{service_type_code}}{a numeric code that uniquely identifies the service_type} - \item{\code{service_instance_id}}{a numeric code that uniquely identifies the service_instance} - \item{\code{ctsi_study_id}}{CSBT's unique identifier for a service} - \item{\code{name_of_service}}{name of the service} - \item{\code{name_of_service_instance}}{name of the study} - \item{\code{other_system_invoicing_comments}}{additional invoice information, either project url, or sponsor and pi} - \item{\code{price_of_service}}{price of the service, in US dollars} - \item{\code{qty_provided}}{quantity provided} - \item{\code{amount_due}}{amount due, in US dollars} - \item{\code{fiscal_year}}{fiscal year of the invoice} - \item{\code{month_invoiced}}{month of the invoice} - \item{\code{pi_last_name}}{last name of the person invoiced} - \item{\code{pi_first_name}}{first name of the person invoiced} - \item{\code{pi_email}}{email of the person invoiced} - \item{\code{gatorlink}}{gatorlink of the person invoiced} - \item{\code{reason}}{reason for the invoice} - \item{\code{status}}{status of the invoice} - \item{\code{sender}}{character: message sender, typically an email address} - \item{\code{recipient}}{character: message recipient, typically an email address} - \item{\code{date_sent}}{POSIXct: date CTSI sent the message} - \item{\code{date_received}}{POSIXct: date CTSIT received the email} - \item{\code{script_name}}{character: the script that created this record} - \item{\code{created}}{created at timestamp} - \item{\code{updated}}{updated at timestamp} -} -} -\source{ -\url{https://github.com/ctsit/rcc.billing/issues/3} -} -\usage{ -invoice_line_item_test_data -} -\description{ -Sample data for invoice_line_item table -} -\keyword{datasets} diff --git a/man/one_deleted_project_record.Rd b/man/one_deleted_project_record.Rd deleted file mode 100644 index 9b926f01..00000000 --- a/man/one_deleted_project_record.Rd +++ /dev/null @@ -1,167 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R -\docType{data} -\name{one_deleted_project_record} -\alias{one_deleted_project_record} -\title{one_deleted_project_record} -\format{ -A data frame with 1 rows and 149 variables: -\describe{ - \item{\code{project_id}}{double} - \item{\code{project_name}}{character} - \item{\code{app_title}}{character} - \item{\code{status}}{integer} - \item{\code{creation_time}}{double} - \item{\code{production_time}}{double} - \item{\code{inactive_time}}{double} - \item{\code{completed_time}}{double} - \item{\code{completed_by}}{character} - \item{\code{data_locked}}{integer} - \item{\code{log_event_table}}{character} - \item{\code{created_by}}{integer} - \item{\code{draft_mode}}{integer} - \item{\code{surveys_enabled}}{integer} - \item{\code{repeatforms}}{integer} - \item{\code{scheduling}}{integer} - \item{\code{purpose}}{integer} - \item{\code{purpose_other}}{character} - \item{\code{show_which_records}}{integer} - \item{\code{__SALT__}}{character} - \item{\code{count_project}}{integer} - \item{\code{investigators}}{character} - \item{\code{project_note}}{character} - \item{\code{online_offline}}{integer} - \item{\code{auth_meth}}{character} - \item{\code{double_data_entry}}{integer} - \item{\code{project_language}}{character} - \item{\code{project_encoding}}{character} - \item{\code{is_child_of}}{character} - \item{\code{date_shift_max}}{integer} - \item{\code{institution}}{character} - \item{\code{site_org_type}}{character} - \item{\code{grant_cite}}{character} - \item{\code{project_contact_name}}{character} - \item{\code{project_contact_email}}{character} - \item{\code{headerlogo}}{character} - \item{\code{auto_inc_set}}{integer} - \item{\code{custom_data_entry_note}}{character} - \item{\code{custom_index_page_note}}{character} - \item{\code{order_id_by}}{character} - \item{\code{custom_reports}}{character} - \item{\code{report_builder}}{character} - \item{\code{disable_data_entry}}{integer} - \item{\code{google_translate_default}}{character} - \item{\code{require_change_reason}}{integer} - \item{\code{dts_enabled}}{integer} - \item{\code{project_pi_firstname}}{character} - \item{\code{project_pi_mi}}{character} - \item{\code{project_pi_lastname}}{character} - \item{\code{project_pi_email}}{character} - \item{\code{project_pi_alias}}{character} - \item{\code{project_pi_username}}{character} - \item{\code{project_pi_pub_exclude}}{integer} - \item{\code{project_pub_matching_institution}}{character} - \item{\code{project_irb_number}}{character} - \item{\code{project_grant_number}}{character} - \item{\code{history_widget_enabled}}{integer} - \item{\code{secondary_pk}}{character} - \item{\code{secondary_pk_display_value}}{integer} - \item{\code{secondary_pk_display_label}}{integer} - \item{\code{custom_record_label}}{character} - \item{\code{display_project_logo_institution}}{integer} - \item{\code{imported_from_rs}}{integer} - \item{\code{display_today_now_button}}{integer} - \item{\code{auto_variable_naming}}{integer} - \item{\code{randomization}}{integer} - \item{\code{enable_participant_identifiers}}{integer} - \item{\code{survey_email_participant_field}}{character} - \item{\code{survey_phone_participant_field}}{character} - \item{\code{data_entry_trigger_url}}{character} - \item{\code{template_id}}{integer} - \item{\code{date_deleted}}{double} - \item{\code{data_resolution_enabled}}{integer} - \item{\code{field_comment_edit_delete}}{integer} - \item{\code{realtime_webservice_enabled}}{integer} - \item{\code{realtime_webservice_type}}{character} - \item{\code{realtime_webservice_offset_days}}{double} - \item{\code{realtime_webservice_offset_plusminus}}{character} - \item{\code{last_logged_event}}{double} - \item{\code{edoc_upload_max}}{integer} - \item{\code{file_attachment_upload_max}}{integer} - \item{\code{survey_queue_custom_text}}{character} - \item{\code{survey_queue_hide}}{integer} - \item{\code{survey_auth_enabled}}{integer} - \item{\code{survey_auth_field1}}{character} - \item{\code{survey_auth_event_id1}}{integer} - \item{\code{survey_auth_field2}}{character} - \item{\code{survey_auth_event_id2}}{integer} - \item{\code{survey_auth_field3}}{character} - \item{\code{survey_auth_event_id3}}{integer} - \item{\code{survey_auth_min_fields}}{character} - \item{\code{survey_auth_apply_all_surveys}}{integer} - \item{\code{survey_auth_custom_message}}{character} - \item{\code{survey_auth_fail_limit}}{integer} - \item{\code{survey_auth_fail_window}}{integer} - \item{\code{twilio_enabled}}{integer} - \item{\code{twilio_modules_enabled}}{character} - \item{\code{twilio_hide_in_project}}{integer} - \item{\code{twilio_account_sid}}{character} - \item{\code{twilio_auth_token}}{character} - \item{\code{twilio_from_number}}{double} - \item{\code{twilio_voice_language}}{character} - \item{\code{twilio_option_voice_initiate}}{integer} - \item{\code{twilio_option_sms_initiate}}{integer} - \item{\code{twilio_option_sms_invite_make_call}}{integer} - \item{\code{twilio_option_sms_invite_receive_call}}{integer} - \item{\code{twilio_option_sms_invite_web}}{integer} - \item{\code{twilio_default_delivery_preference}}{character} - \item{\code{twilio_request_inspector_checked}}{double} - \item{\code{twilio_request_inspector_enabled}}{integer} - \item{\code{twilio_append_response_instructions}}{integer} - \item{\code{twilio_multiple_sms_behavior}}{character} - \item{\code{twilio_delivery_preference_field_map}}{character} - \item{\code{two_factor_exempt_project}}{integer} - \item{\code{two_factor_force_project}}{integer} - \item{\code{disable_autocalcs}}{integer} - \item{\code{custom_public_survey_links}}{character} - \item{\code{pdf_custom_header_text}}{character} - \item{\code{pdf_show_logo_url}}{integer} - \item{\code{pdf_hide_secondary_field}}{integer} - \item{\code{pdf_hide_record_id}}{integer} - \item{\code{shared_library_enabled}}{integer} - \item{\code{allow_delete_record_from_log}}{integer} - \item{\code{delete_file_repository_export_files}}{integer} - \item{\code{custom_project_footer_text}}{character} - \item{\code{custom_project_footer_text_link}}{character} - \item{\code{google_recaptcha_enabled}}{integer} - \item{\code{datamart_allow_repeat_revision}}{integer} - \item{\code{datamart_allow_create_revision}}{integer} - \item{\code{datamart_enabled}}{integer} - \item{\code{break_the_glass_enabled}}{integer} - \item{\code{datamart_cron_enabled}}{integer} - \item{\code{datamart_cron_end_date}}{double} - \item{\code{fhir_include_email_address_project}}{integer} - \item{\code{file_upload_vault_enabled}}{integer} - \item{\code{file_upload_versioning_enabled}}{integer} - \item{\code{missing_data_codes}}{character} - \item{\code{record_locking_pdf_vault_enabled}}{integer} - \item{\code{record_locking_pdf_vault_custom_text}}{character} - \item{\code{fhir_cdp_auto_adjudication_enabled}}{integer} - \item{\code{fhir_cdp_auto_adjudication_cronjob_enabled}}{integer} - \item{\code{project_dashboard_min_data_points}}{integer} - \item{\code{bypass_branching_erase_field_prompt}}{integer} - \item{\code{protected_email_mode}}{integer} - \item{\code{protected_email_mode_custom_text}}{character} - \item{\code{protected_email_mode_trigger}}{character} - \item{\code{protected_email_mode_logo}}{integer} - \item{\code{hide_filled_forms}}{integer} - \item{\code{form_activation_survey_autocontinue}}{integer} -} -} -\usage{ -one_deleted_project_record -} -\description{ -A single REDCap project record for a deleted project -} -\keyword{datasets} diff --git a/man/projects_table_fragment.Rd b/man/projects_table_fragment.Rd deleted file mode 100644 index 794f3ad2..00000000 --- a/man/projects_table_fragment.Rd +++ /dev/null @@ -1,167 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/data.R -\docType{data} -\name{projects_table_fragment} -\alias{projects_table_fragment} -\title{projects_table_fragment} -\format{ -A data frame with 4 rows and 149 variables: -\describe{ - \item{\code{project_id}}{double} - \item{\code{project_name}}{character} - \item{\code{app_title}}{character} - \item{\code{status}}{integer} - \item{\code{creation_time}}{double} - \item{\code{production_time}}{double} - \item{\code{inactive_time}}{double} - \item{\code{completed_time}}{double} - \item{\code{completed_by}}{character} - \item{\code{data_locked}}{integer} - \item{\code{log_event_table}}{character} - \item{\code{created_by}}{integer} - \item{\code{draft_mode}}{integer} - \item{\code{surveys_enabled}}{integer} - \item{\code{repeatforms}}{integer} - \item{\code{scheduling}}{integer} - \item{\code{purpose}}{integer} - \item{\code{purpose_other}}{character} - \item{\code{show_which_records}}{integer} - \item{\code{__SALT__}}{character} - \item{\code{count_project}}{integer} - \item{\code{investigators}}{character} - \item{\code{project_note}}{character} - \item{\code{online_offline}}{integer} - \item{\code{auth_meth}}{character} - \item{\code{double_data_entry}}{integer} - \item{\code{project_language}}{character} - \item{\code{project_encoding}}{character} - \item{\code{is_child_of}}{character} - \item{\code{date_shift_max}}{integer} - \item{\code{institution}}{character} - \item{\code{site_org_type}}{character} - \item{\code{grant_cite}}{character} - \item{\code{project_contact_name}}{character} - \item{\code{project_contact_email}}{character} - \item{\code{headerlogo}}{character} - \item{\code{auto_inc_set}}{integer} - \item{\code{custom_data_entry_note}}{character} - \item{\code{custom_index_page_note}}{character} - \item{\code{order_id_by}}{character} - \item{\code{custom_reports}}{character} - \item{\code{report_builder}}{character} - \item{\code{disable_data_entry}}{integer} - \item{\code{google_translate_default}}{character} - \item{\code{require_change_reason}}{integer} - \item{\code{dts_enabled}}{integer} - \item{\code{project_pi_firstname}}{character} - \item{\code{project_pi_mi}}{character} - \item{\code{project_pi_lastname}}{character} - \item{\code{project_pi_email}}{character} - \item{\code{project_pi_alias}}{character} - \item{\code{project_pi_username}}{character} - \item{\code{project_pi_pub_exclude}}{integer} - \item{\code{project_pub_matching_institution}}{character} - \item{\code{project_irb_number}}{character} - \item{\code{project_grant_number}}{character} - \item{\code{history_widget_enabled}}{integer} - \item{\code{secondary_pk}}{character} - \item{\code{secondary_pk_display_value}}{integer} - \item{\code{secondary_pk_display_label}}{integer} - \item{\code{custom_record_label}}{character} - \item{\code{display_project_logo_institution}}{integer} - \item{\code{imported_from_rs}}{integer} - \item{\code{display_today_now_button}}{integer} - \item{\code{auto_variable_naming}}{integer} - \item{\code{randomization}}{integer} - \item{\code{enable_participant_identifiers}}{integer} - \item{\code{survey_email_participant_field}}{character} - \item{\code{survey_phone_participant_field}}{character} - \item{\code{data_entry_trigger_url}}{character} - \item{\code{template_id}}{integer} - \item{\code{date_deleted}}{double} - \item{\code{data_resolution_enabled}}{integer} - \item{\code{field_comment_edit_delete}}{integer} - \item{\code{realtime_webservice_enabled}}{integer} - \item{\code{realtime_webservice_type}}{character} - \item{\code{realtime_webservice_offset_days}}{double} - \item{\code{realtime_webservice_offset_plusminus}}{character} - \item{\code{last_logged_event}}{double} - \item{\code{edoc_upload_max}}{integer} - \item{\code{file_attachment_upload_max}}{integer} - \item{\code{survey_queue_custom_text}}{character} - \item{\code{survey_queue_hide}}{integer} - \item{\code{survey_auth_enabled}}{integer} - \item{\code{survey_auth_field1}}{character} - \item{\code{survey_auth_event_id1}}{integer} - \item{\code{survey_auth_field2}}{character} - \item{\code{survey_auth_event_id2}}{integer} - \item{\code{survey_auth_field3}}{character} - \item{\code{survey_auth_event_id3}}{integer} - \item{\code{survey_auth_min_fields}}{character} - \item{\code{survey_auth_apply_all_surveys}}{integer} - \item{\code{survey_auth_custom_message}}{character} - \item{\code{survey_auth_fail_limit}}{integer} - \item{\code{survey_auth_fail_window}}{integer} - \item{\code{twilio_enabled}}{integer} - \item{\code{twilio_modules_enabled}}{character} - \item{\code{twilio_hide_in_project}}{integer} - \item{\code{twilio_account_sid}}{character} - \item{\code{twilio_auth_token}}{character} - \item{\code{twilio_from_number}}{double} - \item{\code{twilio_voice_language}}{character} - \item{\code{twilio_option_voice_initiate}}{integer} - \item{\code{twilio_option_sms_initiate}}{integer} - \item{\code{twilio_option_sms_invite_make_call}}{integer} - \item{\code{twilio_option_sms_invite_receive_call}}{integer} - \item{\code{twilio_option_sms_invite_web}}{integer} - \item{\code{twilio_default_delivery_preference}}{character} - \item{\code{twilio_request_inspector_checked}}{double} - \item{\code{twilio_request_inspector_enabled}}{integer} - \item{\code{twilio_append_response_instructions}}{integer} - \item{\code{twilio_multiple_sms_behavior}}{character} - \item{\code{twilio_delivery_preference_field_map}}{character} - \item{\code{two_factor_exempt_project}}{integer} - \item{\code{two_factor_force_project}}{integer} - \item{\code{disable_autocalcs}}{integer} - \item{\code{custom_public_survey_links}}{character} - \item{\code{pdf_custom_header_text}}{character} - \item{\code{pdf_show_logo_url}}{integer} - \item{\code{pdf_hide_secondary_field}}{integer} - \item{\code{pdf_hide_record_id}}{integer} - \item{\code{shared_library_enabled}}{integer} - \item{\code{allow_delete_record_from_log}}{integer} - \item{\code{delete_file_repository_export_files}}{integer} - \item{\code{custom_project_footer_text}}{character} - \item{\code{custom_project_footer_text_link}}{character} - \item{\code{google_recaptcha_enabled}}{integer} - \item{\code{datamart_allow_repeat_revision}}{integer} - \item{\code{datamart_allow_create_revision}}{integer} - \item{\code{datamart_enabled}}{integer} - \item{\code{break_the_glass_enabled}}{integer} - \item{\code{datamart_cron_enabled}}{integer} - \item{\code{datamart_cron_end_date}}{double} - \item{\code{fhir_include_email_address_project}}{integer} - \item{\code{file_upload_vault_enabled}}{integer} - \item{\code{file_upload_versioning_enabled}}{integer} - \item{\code{missing_data_codes}}{character} - \item{\code{record_locking_pdf_vault_enabled}}{integer} - \item{\code{record_locking_pdf_vault_custom_text}}{character} - \item{\code{fhir_cdp_auto_adjudication_enabled}}{integer} - \item{\code{fhir_cdp_auto_adjudication_cronjob_enabled}}{integer} - \item{\code{project_dashboard_min_data_points}}{integer} - \item{\code{bypass_branching_erase_field_prompt}}{integer} - \item{\code{protected_email_mode}}{integer} - \item{\code{protected_email_mode_custom_text}}{character} - \item{\code{protected_email_mode_trigger}}{character} - \item{\code{protected_email_mode_logo}}{integer} - \item{\code{hide_filled_forms}}{integer} - \item{\code{form_activation_survey_autocontinue}}{integer} -} -} -\usage{ -projects_table_fragment -} -\description{ -a portion of a REDCap project table used to make test datasets -} -\keyword{datasets} diff --git a/tests/testthat/redcap_entity_project_ownership/make_test_data.R b/tests/testthat/redcap_entity_project_ownership/make_test_data.R index c953abd7..cd3deca3 100644 --- a/tests/testthat/redcap_entity_project_ownership/make_test_data.R +++ b/tests/testthat/redcap_entity_project_ownership/make_test_data.R @@ -4,8 +4,7 @@ library(rcc.billing) library(tidyverse) library(lubridate) -load(file = testthat::test_path("redcap_projects", - "redcap_projects_test_data.rda")) +redcap_projects_test_data <- readRDS(file = testthat::test_path("redcap_projects", "redcap_projects_test_data.rds")) redcap_entity_project_ownership_test_data <- redcap_projects_test_data %>% diff --git a/tests/testthat/redcap_projects/make_test_data.R b/tests/testthat/redcap_projects/make_test_data.R index b6b346ef..c46a3398 100644 --- a/tests/testthat/redcap_projects/make_test_data.R +++ b/tests/testthat/redcap_projects/make_test_data.R @@ -1,5 +1,3 @@ -## Create redcap_projects_test_data from invoice_line_items_test_data - library(redcapcustodian) library(rcc.billing) library(tidyverse) @@ -8,6 +6,13 @@ library(DBI) library(RMariaDB) library(dotenv) +invoice_line_item_test_data <- readRDS( + file = testthat::test_path( + "invoice_line_item", + "invoice_line_item.rds" + ) +) + project_table_cols <- invoice_line_item_test_data %>% filter(service_type_code == 1) %>% @@ -22,7 +27,11 @@ project_table_cols <- ) %>% mutate(project_id = as.numeric(project_id)) %>% mutate(project_name = gsub(" ", "_", tolower(app_title))) %>% - mutate(creation_time = ymd("2021-05-15") + ddays(c(-3.2, 5.5, -1.7, -7.4)) - years(c(0,3,2,1))) + mutate( + creation_time = ymd("2021-05-15") + + ddays(c(-3.2, 5.5, -1.7, -7.4)) - + years(c(0, 3, 2, 1)) + ) # # run this once against a test redcap to extract the part we need # conn <- connect_to_redcap_db() @@ -36,7 +45,10 @@ project_table_cols <- # collect() %>% # mutate(across(colnames(project_table_cols), ~ NA)) # -# usethis::use_data(projects_table_fragment, overwrite = T) +# saveRDS( +# projects_table_fragment, +# testthat::test_path("redcap_projects", "projects_table_fragment.rds") +# ) # # one_deleted_project_record <- projects %>% # filter(project_id >= 15) %>% @@ -49,13 +61,30 @@ project_table_cols <- # creation_time = min(project_table_cols$creation_time) - ddays(2), # date_deleted = creation_time + ddays(30) # ) -# usethis::use_data(one_deleted_project_record, overwrite = T) +# +# saveRDS( +# one_deleted_project_record, +# testthat::test_path("redcap_projects", "one_deleted_project_record.rds") +# ) + +projects_table_fragment <- readRDS( + file = testthat::test_path("redcap_projects", "projects_table_fragment.rds") +) + +one_deleted_project_record <- readRDS( + file = testthat::test_path("redcap_projects", "one_deleted_project_record.rds") +) redcap_projects_test_data <- - bind_cols(project_table_cols, - projects_table_fragment %>% select(-colnames(project_table_cols))) %>% + bind_cols( + project_table_cols, + projects_table_fragment %>% select(-colnames(project_table_cols)) + ) %>% bind_rows(one_deleted_project_record) %>% select(colnames(projects_table_fragment)) %>% mutate(twilio_from_number = as.integer(NA)) -usethis::use_data(redcap_projects_test_data, overwrite = T) +saveRDS( + redcap_projects_test_data, + file = testthat::test_path("redcap_projects", "redcap_projects_test_data.rds") +) diff --git a/tests/testthat/redcap_projects/one_deleted_project_record.rds b/tests/testthat/redcap_projects/one_deleted_project_record.rds new file mode 100644 index 0000000000000000000000000000000000000000..eda3a3795fcc458491f54057d4d7800b1a734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BFo1(61 zMNA5-MWv{%0kUnNRia1Wm%iFuDE zHN6Bqwr!r7p3~n|^^t)7v7_PJ%Q-AgNlyqT!ZkEQI63zXQ};@!tf*C>y}H29gsG^g zCtU5_DCOD;T-`mc4T1d#!NmrR&3`o#^3|{`mve=8kP?aMdqcpF3MNf!ZW=(>OkhGF z22|o{Z(7h@Ih)uJO@QbyK&JwFna(jORV7o(Oxtz=E;Yeo`@T7YyQN_;eza(xTTA)o zi)pJ~PHGz;pxKj#upBSwPyX7&X@GkohRKRQdB-7G6+?mHNT#Y;y=uX#a0|IPJgJS* z!0W5FnWhpepA0|>gniUGYmjN04Qq?&uDrj9wm|2-g?z5B^Tu4r6J6Q1Z3KfwxoLQ# zd-zQ=K=utn3(l;h3UeET-iapfJMHFfT_|pTeK^y-MdL(VAOuRu4HM{$jfZ aBY(9t;J!PO<|>nAzx)clA_!We8~^};6Wy-> literal 0 HcmV?d00001 diff --git a/tests/testthat/redcap_projects/projects_table_fragment.rds b/tests/testthat/redcap_projects/projects_table_fragment.rds new file mode 100644 index 0000000000000000000000000000000000000000..0b75f53fb2fbd9cbca6c16dc96140bfa32244d5e GIT binary patch literal 2321 zcmV+s3GVhEiwFP!000001JxSsZXCC9CE0QnS_@KSoyL#e3as{gqL~vP8#5)Z=P*G`8JYfIIV}WIaB_?b82Q< z;M9xfkKpmkc&C{-9OD3!hbP=~>-9gfhgwo+xu*szEnPl@Pv6tX3X_cGN2s)3q$XYv zltj2dDQ_X#rny`nhS(T}*c^`No?)`_9dl+*E_a8V&7)G09b7M1ZoZtVBdd_kA8N82mG90FK z)WK*ny7V}2rL0WG8=f2g6KU`F%=h`N)4eHs`?dKSY?CLSKW2IydB1Vf^ts6E4eT?n z{7-71!{(0?|Gxa=%Ltbg7eVh@qKwLf6I2Kq zQ&CR|&e?nqg40yXXI3kY>k6aDe)`di?dQ+F9%B>)n)kn~){6~$HujnP=#yjKj7+y) z|NTzzuOQfZoxlI@Ks|rFxPPFY=Td(U3zw%2qbK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R{L|s6a4Ms9JA%oIbvl7w-w;8u;y6qV0W1u#9 zkY!<`qU?aCaeb&gh_lTKbj2fpau}BA#V^=eMr9e0c;sBgxCbQhltspmz!~ygOR-## z*g8>Nvh{=^h1J!w&WGJ}u%Zy!+PhiTPbP~FZ<4Ju`QWs@LZN2$YGD=31$L`* zf}N|K01jX^Ww1KPs@e`pSyfBWJzeH0a3B9BtH&Jb#~u#f8&09+)TjyJM7V%r2sh4s zQ{}x3GApVXs9P6!v{~sT^#)bl8#Srs9aZlh*FzxRMbOxwmipJB271X&i$q`IU2Y=l z-{Gv+#R(ItG*<;+?=MLWOM6EP-K4X&cF~3)dI+FW0lrk_*hp0wE7dP>b@2^Njnmkg zEzY2~R0PV72JLfuC|!Rtt=Wr6q5T6mdsPt@;Q{r@heuEuD%9_#bufTc!0o-tS;CsC*wDK0dgZl2xB)z`4x}@6 zomJ*Q8n0zr&>jpLO;y3`_2IYF0O=cqS~%U5%2hWAwG(aJdt4U0^Qpc2P!}bW2k__c r@bJHli?b;+VOoYMBDS%ef{|@4m2f|eg=%Gj;Ftda*SFBS7AOD!8J2EE literal 0 HcmV?d00001 diff --git a/tests/testthat/redcap_projects/redcap_projects_test_data.rda b/tests/testthat/redcap_projects/redcap_projects_test_data.rda deleted file mode 100644 index bf9db3bd17d361a028028d5060d1e33efab433bf..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2555 zcmV8iU1G_Vj#dE zLBIe3KndUqpB_QQgN;`M4Yy1{00Grv7RLmlCXi^<)cq;qn^V;BOv(e%srpIk8Z^^t z0qSY$0D6D`0LTN>(V?INKuri5NvdSiL)3bisp3beplH)+0B8VcGy_c;85$aB#Pu3z z06~)gCIA9p2-66_0003pX^Eh~2*3aU00}iIA*g5#000000004_Kmnit0000D8&L*K z0GI#?fFn#J00004$)+ZQ03!eZ001ONAP@v-Mwv1s_KJF&AVKOh8Z;iJL6ZriMuvt! zG}@V{(dq+Fi2sQT-q+vsy$|(3T*2_*uss>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CxvL@~ArS+H_pyv`z_Q0?YSYj5 z&=g?NfeEN&fl!>St=<|JM(~-DgdaW~VK+Vn%XS-V8F3+hazbHV5J*T&gqx5kB#@SI R0!UBzyOJrwgoCGAkFaiyk`4d> diff --git a/tests/testthat/redcap_projects/redcap_projects_test_data.rds b/tests/testthat/redcap_projects/redcap_projects_test_data.rds new file mode 100644 index 0000000000000000000000000000000000000000..22f3b1fb8da165a9014b7b1d4f2d4b76d7ba5f69 GIT binary patch literal 2582 zcmV+x3hDJ9iwFP!000001Kk=;a}>vQB!LJBfh3HO3Bl_?QX!5B5|)H17lld@Wl~@$ zOQgV*s;hUpXSdPJ^th*IrR9+5ALQWjAMiDms^pMEPT`uHPqu$WD)&@bdEL`J+dDfe zgjggeTeX_)_g=r(@2lVI9z8zcdESV3@19)GQ#-!9y_rk{Tv-PZ7b{AEJZ9~p)} zLw4=*IghDP$O1V$TQrsn{Sb@&5I0^K@u9Q8;fn8Wi?_HTGalLlZm0rR#k0S$`njO@xmUxVSXh`{ zoWnstu2~52=Y2XmU%y_rkPqhP78e#57p~72kb2#}L2fMG2rOjo!?|k#?&r%jQZq`1k-^#IBfSNgQ{i9#kZy9dy0XIRh zqy!Q8yMD9wRB_O})_+xdss-euD`rXnQ+O=lj8j^J3#?p*A&>(507O_sXm-5-S1)kJ zU4px~3bR&y_S&cQbH{#pR()JIp0#Sz2(u7jLIh1a>7En)*b+rlHaS6wpaB*66z`By zVcV-p+r1rsmcIGt7Y{Z4K#w5%O{=~7YIOP0>e_?*`ySb=g$p_Bmpx0;hu?dD&%cU; z`5&)%FVvAQe)nIVdj9@sdpkb@zQLp5Zrl1GxBS=3zr!h0KWJXw0LxpSb-fhlRe$m| znBZG|^y%+bo~*vsaIhgVNE5lL4%2wgzuru-8c2)1a)0UWy?qT1^+IhRjoRq)#}Do< zuk3qtaQot+C&WuEy$@8G>uwPvd2zU5dx$V7j4S5qsxT?<}dA$_(8g>}O+H-p2 z&!v0!Ug_uFRCvYo?S6Np&W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;`dhEf${=+4w$oq)-?fU-=T zzO+AGw+k;>S0o9IiQ2*v9;Z~-0FgJ)X-Sa?R>+_=)~eKL6So+*Zn|73(xX5g@?guv z?uv2~JdN{3ZNWZU?m%Z80%(VUMK^xZ_A;u$CQ}986x$-?r_&}Du#JYSF4U}UFI<3d0cm+n zuyb`1zyhqN3|4Qls<(qyR`n8eOSgFn+@rs#>H&xTu}i~u`cr5-m3l&05l)~P!liXz zRCOtbc&V?(M15A3h1Re$5N?^SgPKq=FK-8Y6_3l zY;y)@OGTjKs7lV|zI46CG*{0jiOvtu>{&*bk1P6#Q>?X`Cb5q|RXQXs8-q=Nx`X4UoP;$c@t}sa%}~p?9LCdynISZ(g-`AL_DXcpLug s?Ckufbm2B)CXC8@h=@Jdj=;zsEtPSv20|TWJn#Ge0;*M!#6K+n0KK&nf&c&j literal 0 HcmV?d00001 diff --git a/tests/testthat/test-redcap_projects.R b/tests/testthat/test-redcap_projects.R index a5dcc35e..227696da 100644 --- a/tests/testthat/test-redcap_projects.R +++ b/tests/testthat/test-redcap_projects.R @@ -143,7 +143,7 @@ test_that("update_billable_by_ownership", { load(file = testthat::test_path("redcap_entity_project_ownership", "test_data.rda")) duckdb::duckdb_register(conn, "redcap_entity_project_ownership", redcap_entity_project_ownership_test_data) - load(file = testthat::test_path("redcap_projects", "redcap_projects_test_data.rda")) + redcap_projects_test_data <- readRDS(file = testthat::test_path("redcap_projects", "redcap_projects_test_data.rds")) duckdb::duckdb_register(conn, "redcap_projects", redcap_projects_test_data) output <- update_billable_by_ownership(conn) @@ -176,7 +176,7 @@ test_that("update_billable_if_owned_by_ctsit", { statement = sql ) - load(file = testthat::test_path("redcap_projects", "redcap_projects_test_data.rda")) + redcap_projects_test_data <- readRDS(file = testthat::test_path("redcap_projects", "redcap_projects_test_data.rds")) duckdb::dbWriteTable(conn, "redcap_projects", redcap_projects_test_data) output <- update_billable_if_owned_by_ctsit(conn)