{"action":"created","issue":{"url":"https://api.github.com/repos/jimhester/covr/issues/56","labels_url":"https://api.github.com/repos/jimhester/covr/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/jimhester/covr/issues/56/comments","events_url":"https://api.github.com/repos/jimhester/covr/issues/56/events","html_url":"https://github.com/jimhester/covr/issues/56","id":57521974,"number":56,"title":"Coverage fails on compiled code coverage.","user":{"login":"ehrlinger","id":1110676,"avatar_url":"https://avatars.githubusercontent.com/u/1110676?v=3","gravatar_id":"","url":"https://api.github.com/users/ehrlinger","html_url":"https://github.com/ehrlinger","followers_url":"https://api.github.com/users/ehrlinger/followers","following_url":"https://api.github.com/users/ehrlinger/following{/other_user}","gists_url":"https://api.github.com/users/ehrlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/ehrlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehrlinger/subscriptions","organizations_url":"https://api.github.com/users/ehrlinger/orgs","repos_url":"https://api.github.com/users/ehrlinger/repos","events_url":"https://api.github.com/users/ehrlinger/events{/privacy}","received_events_url":"https://api.github.com/users/ehrlinger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-12T21:26:33Z","updated_at":"2015-02-12T21:32:19Z","closed_at":null,"body":"I'm working on a package with compiled code. It builds fine, but fails when I run:\r\n\r\n``` {R }\r\n> Rscript -e \"library(covr);package_coverage()\"\r\nLoading required package: methods\r\nrfsrc tests : \r\n\r\nUnexpected version: *904.\r\nInvalid .gcno File!\r\n.\r\n.\r\n.\r\nUnexpected version: *904.\r\nInvalid .gcno File!\r\nError in names(res) <- file.path(src_path, names(res)) : \r\n  attempt to set an attribute on NULL\r\nCalls: package_coverage -> run_gcov\r\nExecution halted\r\n```\r\n\r\nThis happens locally on OS X. \r\n\r\nIt fails on the TravisCI Linux server as well:\r\n``` \r\nError in seq.default(df[i, \"first_line\"], df[i, \"last_line\"]) : \r\n  'from' cannot be NA, NaN or infinite\r\nCalls: coveralls -> to_coveralls -> per_line -> seq -> seq.default\r\nExecution halted\r\n```"},"comment":{"url":"https://api.github.com/repos/jimhester/covr/issues/comments/74157215","html_url":"https://github.com/jimhester/covr/issues/56#issuecomment-74157215","issue_url":"https://api.github.com/repos/jimhester/covr/issues/56","id":74157215,"user":{"login":"ehrlinger","id":1110676,"avatar_url":"https://avatars.githubusercontent.com/u/1110676?v=3","gravatar_id":"","url":"https://api.github.com/users/ehrlinger","html_url":"https://github.com/ehrlinger","followers_url":"https://api.github.com/users/ehrlinger/followers","following_url":"https://api.github.com/users/ehrlinger/following{/other_user}","gists_url":"https://api.github.com/users/ehrlinger/gists{/gist_id}","starred_url":"https://api.github.com/users/ehrlinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehrlinger/subscriptions","organizations_url":"https://api.github.com/users/ehrlinger/orgs","repos_url":"https://api.github.com/users/ehrlinger/repos","events_url":"https://api.github.com/users/ehrlinger/events{/privacy}","received_events_url":"https://api.github.com/users/ehrlinger/received_events","type":"User","site_admin":false},"created_at":"2015-02-12T21:32:19Z","updated_at":"2015-02-12T21:32:19Z","body":"Alright, If I can get coverage through TravisCI -> Coveralls, I’m happy.\n\nI’ll poke around to see why it would try to use gov with clang. I’m sure my code was gcc compiled.\n\nThanks.\n\n\n\n> On Feb 12, 2015, at 4:29 PM, Jim Hester <notifications@github.com> wrote:\n> \n> The first error is due to an incompatibility in the gcov format produced by your compiler and the gcov program on your path. I would guess that it is compiling with gcc but trying to use the clang gcov, or vise versa.\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/jimhester/covr/issues/56#issuecomment-74156675>.\n> \n\n"}}