{"action":"opened","issue":{"url":"https://api.github.com/repos/mikemeredith/AHMbook/issues/1","repository_url":"https://api.github.com/repos/mikemeredith/AHMbook","labels_url":"https://api.github.com/repos/mikemeredith/AHMbook/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mikemeredith/AHMbook/issues/1/comments","events_url":"https://api.github.com/repos/mikemeredith/AHMbook/issues/1/events","html_url":"https://github.com/mikemeredith/AHMbook/issues/1","id":189051964,"number":1,"title":"no visible binding for global variable 'x' ","user":{"login":"mikemeredith","id":1969451,"avatar_url":"https://avatars.githubusercontent.com/u/1969451?v=3","gravatar_id":"","url":"https://api.github.com/users/mikemeredith","html_url":"https://github.com/mikemeredith","followers_url":"https://api.github.com/users/mikemeredith/followers","following_url":"https://api.github.com/users/mikemeredith/following{/other_user}","gists_url":"https://api.github.com/users/mikemeredith/gists{/gist_id}","starred_url":"https://api.github.com/users/mikemeredith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikemeredith/subscriptions","organizations_url":"https://api.github.com/users/mikemeredith/orgs","repos_url":"https://api.github.com/users/mikemeredith/repos","events_url":"https://api.github.com/users/mikemeredith/events{/privacy}","received_events_url":"https://api.github.com/users/mikemeredith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-14T08:14:52Z","updated_at":"2016-11-14T08:14:52Z","closed_at":null,"body":"When code includes a call to `graphics::curve`, R CMD check produces a NOTE re \"no visible binding for global variable 'x' \". This is a known issue because of the non-standard way that `curve` uses 'x', but it does mean that the package will not be accepted by CRAN.\r\n\r\nThe work-around suggested by Duncan Murdoch on [nabble](http://r.789695.n4.nabble.com/R-CMD-check-tells-me-no-visible-binding-for-global-variable-what-does-it-mean-td1837236.html) is to insert `function(x)` before/as the first argument to `curve`. For example,\r\n\r\n`curve(plogis(beta0 + beta1*x), ...`\r\n\r\nbecomes\r\n\r\n`curve(function(x) plogis(beta0 + beta1*x), ...`\r\n\r\nwhich does the same thing but doesn't set R CMD check barking."}}
{"actor":{"display_login":"mikemeredith"}}