{"action":"created","issue":{"url":"https://api.github.com/repos/nutterb/redcapAPI/issues/62","labels_url":"https://api.github.com/repos/nutterb/redcapAPI/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/nutterb/redcapAPI/issues/62/comments","events_url":"https://api.github.com/repos/nutterb/redcapAPI/issues/62/events","html_url":"https://github.com/nutterb/redcapAPI/issues/62","id":120066637,"number":62,"title":"Error in exportReports","user":{"login":"SteveLane","id":7423885,"avatar_url":"https://avatars.githubusercontent.com/u/7423885?v=3","gravatar_id":"","url":"https://api.github.com/users/SteveLane","html_url":"https://github.com/SteveLane","followers_url":"https://api.github.com/users/SteveLane/followers","following_url":"https://api.github.com/users/SteveLane/following{/other_user}","gists_url":"https://api.github.com/users/SteveLane/gists{/gist_id}","starred_url":"https://api.github.com/users/SteveLane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteveLane/subscriptions","organizations_url":"https://api.github.com/users/SteveLane/orgs","repos_url":"https://api.github.com/users/SteveLane/repos","events_url":"https://api.github.com/users/SteveLane/events{/privacy}","received_events_url":"https://api.github.com/users/SteveLane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-03T00:27:15Z","updated_at":"2015-12-08T10:50:58Z","closed_at":null,"body":"The exportReports function is used to export data from reports built in REDCap. It calls another function internally, fieldToVar, which is a type-conversion function.\r\n\r\nWhen trying to export a report, a user (W Campbell) found the following bug:\r\n\r\n```{r}\r\nrcon <- redcapConnection(redcap_url, project_token)\r\nmyReport <- exportReports(rcon, report_id = my_reports_id)\r\n\r\nError in if (grepl(\"date_\", m$text_validation_type_or_show_slider_number) &&  : \r\n  missing value where TRUE/FALSE needed\r\n```"},"comment":{"url":"https://api.github.com/repos/nutterb/redcapAPI/issues/comments/162847471","html_url":"https://github.com/nutterb/redcapAPI/issues/62#issuecomment-162847471","issue_url":"https://api.github.com/repos/nutterb/redcapAPI/issues/62","id":162847471,"user":{"login":"nutterb","id":1848445,"avatar_url":"https://avatars.githubusercontent.com/u/1848445?v=3","gravatar_id":"","url":"https://api.github.com/users/nutterb","html_url":"https://github.com/nutterb","followers_url":"https://api.github.com/users/nutterb/followers","following_url":"https://api.github.com/users/nutterb/following{/other_user}","gists_url":"https://api.github.com/users/nutterb/gists{/gist_id}","starred_url":"https://api.github.com/users/nutterb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nutterb/subscriptions","organizations_url":"https://api.github.com/users/nutterb/orgs","repos_url":"https://api.github.com/users/nutterb/repos","events_url":"https://api.github.com/users/nutterb/events{/privacy}","received_events_url":"https://api.github.com/users/nutterb/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T10:50:58Z","updated_at":"2015-12-08T10:50:58Z","body":"It would be great if you could do that.  Thanks for tracking down the error."}}