diff --git a/inst/misc/dev-2.credentials b/inst/misc/dev-2.credentials index e55ed682..1c220917 100644 --- a/inst/misc/dev-2.credentials +++ b/inst/misc/dev-2.credentials @@ -7,7 +7,7 @@ redcap_uri,username,project_id,token,comment "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","33","9A068C425B1341D69E83064A2D273A70","simple static (read-only) test project" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","34","DA6F2BB23146BD5A7EA3408C1A44A556","longitudinal (read-only) ARM test project" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","36","F9CBFFF78C3D78F641BAE9623F6B7E6A","simple write data" -"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Russian Characters" +"https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","37","7FD9A8BFC00BD2D7999DCDB9C19504B3","Russian Characters" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Empty rows" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","Single column" "https://redcap-dev-2.ouhsc.edu/redcap/api/","myusername","","","super-wide --3,000 columns" diff --git a/inst/test-data/projects/empty-rows/data.csv b/inst/test-data/projects/empty-rows/data.csv new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/inst/test-data/projects/empty-rows/data.csv @@ -0,0 +1 @@ + diff --git a/inst/test-data/projects/empty-rows/dictionary.csv b/inst/test-data/projects/empty-rows/dictionary.csv new file mode 100644 index 00000000..8e7452e8 --- /dev/null +++ b/inst/test-data/projects/empty-rows/dictionary.csv @@ -0,0 +1,17 @@ +"Variable / Field Name","Form Name","Section Header","Field Type","Field Label","Choices, Calculations, OR Slider Labels","Field Note","Text Validation Type OR Show Slider Number","Text Validation Min","Text Validation Max",Identifier?,"Branching Logic (Show field only if...)","Required Field?","Custom Alignment","Question Number (surveys only)","Matrix Group Name","Matrix Ranking?","Field Annotation" +record_id,demographics,,text,"Study ID",,,,,,,,,,,,, +name_first,demographics,"Contact Information",text,"First Name",,,,,,y,,,,,,, +name_last,demographics,,text,"Last Name",,,,,,y,,,,,,, +address,demographics,,notes,"Street, City, State, ZIP",,,,,,y,,,,,,, +telephone,demographics,,text,"Phone number",,"Include Area Code",phone,,,y,,,,,,, +email,demographics,,text,E-mail,,,email,,,y,,,,,,, +dob,demographics,,text,"Date of birth",,,date_ymd,,,y,,,,,,, +age,demographics,,calc,"Age (years)","rounddown(datediff([dob],'today','y'))",,,,,,,,,,,, +sex,demographics,,radio,Gender,"0, Female | 1, Male",,,,,,,,,,,, +height,health,,text,"Height (cm)",,,number,130,215,,,,,,,, +weight,health,,text,"Weight (kilograms)",,,integer,35,200,,,,,,,, +bmi,health,,calc,BMI,"round(([weight]*10000)/(([height])^(2)),1)",,,,,,,,,,,, +comments,health,"General Comments",notes,Comments,,,,,,,,,,,,, +mugshot,health,,file,Mugshot,,,,,,,,,,,,, +race,race_and_ethnicity,,checkbox,"Race (Select all that apply)","1, American Indian/Alaska Native | 2, Asian | 3, Native Hawaiian or Other Pacific Islander | 4, Black or African American | 5, White | 6, Unknown / Not Reported",,,,,,,,,,,, +ethnicity,race_and_ethnicity,,radio,Ethnicity,"0, Unknown / Not Reported | 1, NOT Hispanic or Latino | 2, Hispanic or Latino",,,,,,,,,,,, diff --git a/inst/test-data/projects/empty-rows/project.xml b/inst/test-data/projects/empty-rows/project.xml new file mode 100644 index 00000000..7229622b --- /dev/null +++ b/inst/test-data/projects/empty-rows/project.xml @@ -0,0 +1,254 @@ + + + + + REDCapR Target Empty Rows -see https://github.com/OuhscBbmc/REDCapR + This file contains the metadata, events, and data for REDCap project "REDCapR Target Empty Rows -see https://github.com/OuhscBbmc/REDCapR". + REDCapR Target Empty Rows -see https://github.com/OuhscBbmc/REDCapR + 1 + + + 1 + 1 + 0 + 0 + + 1 + 0 + 0 + 1 + + 0 + 0 + + + + 0 + + ALL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Study ID + + + Data Access Group + + + First Name + + + Last Name + + + Street, City, State, ZIP + + + Phone number + + + E-mail + + + Date of birth + + + Age (years) + + + Gender + + + + Complete? + + + + Height (cm) + + 130 + The value you provided is outside the suggested range (130 - 215). This value is admissible, but you may wish to double check it. + + + 215 + The value you provided is outside the suggested range (130 - 215). This value is admissible, but you may wish to double check it. + + + + Weight (kilograms) + + 35 + The value you provided is outside the suggested range (35 - 200). This value is admissible, but you may wish to double check it. + + + 200 + The value you provided is outside the suggested range (35 - 200). This value is admissible, but you may wish to double check it. + + + + BMI + + + Comments + + + Mugshot + + + Complete? + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Race (Select all that apply) + + + + Ethnicity + + + + Complete? + + + + Female + Male + + + Incomplete + Unverified + Complete + + + Incomplete + Unverified + Complete + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Checked + Unchecked + + + Unknown / Not Reported + NOT Hispanic or Latino + Hispanic or Latino + + + Incomplete + Unverified + Complete + + + + + + \ No newline at end of file