This page records different errors from using Jeff Horner's redcap package and what the resolution was. I'm using the version here:https://github.com/vubiostat/redcap/archive/patched.zip I'm using the function here: http://biostat.mc.vanderbilt.edu/wiki/pub/Main/JoAnnAlvarez/redcapFun.R

Charles Phillips' project

  • Participant tracker
    [1] "I don't know field_type calc for field age_today"
    [1] "I don't know field_type calc for field reconsent_yn"
    [1] "I don't know field_type calc for field age_s_nextvisit"
    
  • survivorSelfReportsAges19to60
    Warning messages:
    1: In strsplit(m$select_choices_or_calculations, "[\n|]") :
      input string 1 is invalid in this locale
    2: In strsplit(m$select_choices_or_calculations, "[\n|]") :
      input string 1 is invalid in this locale
    3: In strsplit(m$select_choices_or_calculations, "[\n|]") :
      input string 1 is invalid in this locale
    
  • Survivor self report ages 13 to 19 New error and new warnings!
   #Sys.setlocale(locale="C")
   # This is the file that was giving trouble.
   survivorSelfReportsAges13to18 <- redcapFun('6619A574E325C8F20741D4A3F86ADA06')
#Error in `$<-.data.frame`(`*tmp*`, "csrhhxdx1type___NA", value = integer(0)) (from <text>#4) : 
#  replacement has 0 rows, data has 15
#In addition: Warning messages:
#1: In strsplit(fld$select_choices_or_calculations, "[|]") :
#  input string 1 is invalid in this locale
#2: In strsplit(fld$select_choices_or_calculations, "[|]") :
#  input string 1 is invalid in this locale

Subcentimeter breast cancer study

  • In fieldToVar(as.list(meta_data[meta_data$field_name == i, ]), x[[i]],  :
      inaccurate integer conversion in coercion
    
Will fixed this in the git hub version of the patched package. https://github.com/vubiostat/redcap/archive/patched.zip
  •  In `levels<-`(`*tmp*`, value = if (nl == nL) as.character(labels) else paste0(labels,  :                                                                                                                
      duplicated levels in factors are deprecated  
    
there are duplicate choices in the meta-data for 2 variables

-- JoAnnAlvarez - 16 Apr 2014
Topic revision: r3 - 15 Jul 2014, JoAnnAlvarez
 

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback