{"comment":{"url":"https://api.github.com/repos/warnes/readxl/comments/12577380","html_url":"https://github.com/warnes/readxl/commit/1f71a5ad325c1b2a6055bf4f2d1db8caf167ec11#commitcomment-12577380","id":12577380,"user":{"login":"warnes","id":6144863,"avatar_url":"https://avatars.githubusercontent.com/u/6144863?v=3","gravatar_id":"","url":"https://api.github.com/users/warnes","html_url":"https://github.com/warnes","followers_url":"https://api.github.com/users/warnes/followers","following_url":"https://api.github.com/users/warnes/following{/other_user}","gists_url":"https://api.github.com/users/warnes/gists{/gist_id}","starred_url":"https://api.github.com/users/warnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warnes/subscriptions","organizations_url":"https://api.github.com/users/warnes/orgs","repos_url":"https://api.github.com/users/warnes/repos","events_url":"https://api.github.com/users/warnes/events{/privacy}","received_events_url":"https://api.github.com/users/warnes/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"1f71a5ad325c1b2a6055bf4f2d1db8caf167ec11","created_at":"2015-08-06T22:55:31Z","updated_at":"2015-08-06T22:55:31Z","body":"Should be able to simplify the code to: \r\n```\r\nRcpp::stop(Rcpp::sprintf<100>(\r\n                             \"Recieved %d names and %d types but worksheet contains %d columns.\", \r\n                             names.size(), types.size(),  ncol_).c_str() \r\n                             )\r\n           );\r\n```"}}