{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/dplyr/issues/1108","labels_url":"https://api.github.com/repos/hadley/dplyr/issues/1108/labels{/name}","comments_url":"https://api.github.com/repos/hadley/dplyr/issues/1108/comments","events_url":"https://api.github.com/repos/hadley/dplyr/issues/1108/events","html_url":"https://github.com/hadley/dplyr/issues/1108","id":71285710,"number":1108,"title":"numeric overflow might need warning","user":{"login":"ajdamico","id":216807,"avatar_url":"https://avatars.githubusercontent.com/u/216807?v=3","gravatar_id":"","url":"https://api.github.com/users/ajdamico","html_url":"https://github.com/ajdamico","followers_url":"https://api.github.com/users/ajdamico/followers","following_url":"https://api.github.com/users/ajdamico/following{/other_user}","gists_url":"https://api.github.com/users/ajdamico/gists{/gist_id}","starred_url":"https://api.github.com/users/ajdamico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajdamico/subscriptions","organizations_url":"https://api.github.com/users/ajdamico/orgs","repos_url":"https://api.github.com/users/ajdamico/repos","events_url":"https://api.github.com/users/ajdamico/events{/privacy}","received_events_url":"https://api.github.com/users/ajdamico/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"romainfrancois","id":2625526,"avatar_url":"https://avatars.githubusercontent.com/u/2625526?v=3","gravatar_id":"","url":"https://api.github.com/users/romainfrancois","html_url":"https://github.com/romainfrancois","followers_url":"https://api.github.com/users/romainfrancois/followers","following_url":"https://api.github.com/users/romainfrancois/following{/other_user}","gists_url":"https://api.github.com/users/romainfrancois/gists{/gist_id}","starred_url":"https://api.github.com/users/romainfrancois/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romainfrancois/subscriptions","organizations_url":"https://api.github.com/users/romainfrancois/orgs","repos_url":"https://api.github.com/users/romainfrancois/repos","events_url":"https://api.github.com/users/romainfrancois/events{/privacy}","received_events_url":"https://api.github.com/users/romainfrancois/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hadley/dplyr/milestones/8","html_url":"https://github.com/hadley/dplyr/milestones/0.5","labels_url":"https://api.github.com/repos/hadley/dplyr/milestones/8/labels","id":766580,"number":8,"title":"0.5","description":"","creator":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"open_issues":132,"closed_issues":10,"state":"open","created_at":"2014-08-26T20:16:29Z","updated_at":"2015-05-21T15:23:29Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-04-27T13:33:11Z","updated_at":"2015-05-21T15:23:43Z","closed_at":null,"body":"reproducible example\r\n\r\n\r\n\tlibrary(dplyr)\r\n\tlibrary(readr)\r\n\r\n\ttf <- tempfile()\r\n\tdownload.file( \"http://downloads.cms.gov/FILES/HCRIS/HOSP10FY2013.zip\" , tf , mode = 'wb' )\r\n\r\n\r\n\tz <- unzip( tf , exdir = tempdir() )\r\n\tnmrc <- read_csv( grep( 'NMRC' , z , value = TRUE ) , col_names = F )\r\n\r\n\t# Warning message:\r\n\t# In sum(nmrc$X5, na.rm = TRUE) : integer overflow - use sum(as.numeric(.))\r\n\tsum( nmrc$X5 , na.rm = TRUE )\r\n\r\n\t# now it works\r\n\tsum( as.numeric( nmrc$X5 ) , na.rm = TRUE )\r\n\r\n\t# this sum is missing despite the na.rm = TRUE\r\n\tnmrc %>% summarize( mean( X5 , na.rm = TRUE ) , sum( X5 , na.rm = TRUE ) )\r\n\r\n\t# here's the fix for this case\r\n\tnmrc$X6 <- as.numeric( nmrc$X5 )\r\n\tnmrc %>% summarize( mean( X6 , na.rm = TRUE ) , sum( X6 , na.rm = TRUE ) )\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hadley/dplyr/issues/comments/104318241","html_url":"https://github.com/hadley/dplyr/issues/1108#issuecomment-104318241","issue_url":"https://api.github.com/repos/hadley/dplyr/issues/1108","id":104318241,"user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T15:23:43Z","updated_at":"2015-05-21T15:23:43Z","body":"Need to get 0.4.2 out ASAP for CRAN, so lets push this off"}}