{"action":"opened","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/2166","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/2166/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/2166/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/2166/events","html_url":"https://github.com/Rdatatable/data.table/issues/2166","id":229243266,"number":2166,"title":"fread completely broken: arguments mismatched in C call","user":{"login":"HughParsonage","id":8111628,"avatar_url":"https://avatars2.githubusercontent.com/u/8111628?v=3","gravatar_id":"","url":"https://api.github.com/users/HughParsonage","html_url":"https://github.com/HughParsonage","followers_url":"https://api.github.com/users/HughParsonage/followers","following_url":"https://api.github.com/users/HughParsonage/following{/other_user}","gists_url":"https://api.github.com/users/HughParsonage/gists{/gist_id}","starred_url":"https://api.github.com/users/HughParsonage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HughParsonage/subscriptions","organizations_url":"https://api.github.com/users/HughParsonage/orgs","repos_url":"https://api.github.com/users/HughParsonage/repos","events_url":"https://api.github.com/users/HughParsonage/events{/privacy}","received_events_url":"https://api.github.com/users/HughParsonage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-17T05:40:53Z","updated_at":"2017-05-17T05:40:53Z","closed_at":null,"body":"In commit 97af8bae6d9e7456069c7d9ec915c55cd0ba35dc it appears that `fread`'s arguments have been misaligned in the C Call:\r\n\r\n```r\r\nlibrary(data.table)\r\nfwrite(data.table(x = 1:10), \"temp.csv\")\r\nfread(\"temp.csv\")\r\nError in fread(\"temp.csv\") : \r\n  'integer64' must be a single character string\r\n```\r\n\r\nThe offending line appears to be:\r\n\r\n```\r\n+    warnings2errors = getOption(\"warn\") >= 2\r\n      ans = .Call(CfreadR,input,sep,dec,quote,header,nrows,skip,na.strings,strip.white,blank.lines.skip,\r\n -                        fill,showProgress,nThread,verbose,select,drop,colClasses,integer64,encoding)\r\n +                        fill,showProgress,nThread,verbose,warnings2errors,select,drop,colClasses,integer64,encoding)\r\n```\r\n\r\nIndeed, \r\n\r\n```r\r\n fread(\"temp.csv\", colClasses = \"integer64\")\r\nError in fread(\"temp.csv\", colClasses = \"integer64\") : \r\n  encoding='integer64' invalid. Must be 'unknown', 'Latin-1' or 'UTF-8'\r\n```\r\n\r\nand \r\n\r\n```r\r\nfread(\"temp.csv\", colClasses = \"integer64\", integer64 = \"unknown\")\r\nError in fread(\"temp.csv\", colClasses = \"integer64\", integer64 = \"unknown\") : \r\n  Column number 0 (select[1]) is out of range [1,ncol=1]\r\n```\r\n\r\netc.\r\n\r\n"}}
{"actor":{"display_login":"HughParsonage"}}