{"action":"closed","issue":{"url":"https://api.github.com/repos/klutometis/roxygen/issues/461","repository_url":"https://api.github.com/repos/klutometis/roxygen","labels_url":"https://api.github.com/repos/klutometis/roxygen/issues/461/labels{/name}","comments_url":"https://api.github.com/repos/klutometis/roxygen/issues/461/comments","events_url":"https://api.github.com/repos/klutometis/roxygen/issues/461/events","html_url":"https://github.com/klutometis/roxygen/issues/461","id":139836440,"number":461,"title":"Tag suggestion: @globals","user":{"login":"thomasp85","id":1775316,"avatar_url":"https://avatars.githubusercontent.com/u/1775316?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasp85","html_url":"https://github.com/thomasp85","followers_url":"https://api.github.com/users/thomasp85/followers","following_url":"https://api.github.com/users/thomasp85/following{/other_user}","gists_url":"https://api.github.com/users/thomasp85/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasp85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasp85/subscriptions","organizations_url":"https://api.github.com/users/thomasp85/orgs","repos_url":"https://api.github.com/users/thomasp85/repos","events_url":"https://api.github.com/users/thomasp85/events{/privacy}","received_events_url":"https://api.github.com/users/thomasp85/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-03-10T09:44:29Z","updated_at":"2016-08-29T16:08:23Z","closed_at":"2016-08-29T16:08:23Z","body":"With the increase in use of non-standard evaluation, it would be fantastic if it was possible in roxygen comments to indicate which NSE names are used in the function and have roxygen automatically compile the `globalVariables()` call into a new file. I know that often there are SE versions of the functions, that are better used in package development, but this is not always the case (data.table springs to mind).\r\n\r\nI suggest the addition of the @globals tag with a straightforward syntax:\r\n\r\n    #' @globals variable1 variable2 function1\r\n\r\nwhich would result in:\r\n\r\n```r\r\nglobalVariables(\r\n  names = c(\r\n    'variable1',\r\n    'variable2',\r\n    'function1'\r\n  )\r\n)\r\n```\r\n\r\nbeing written to `r/roxygen-globals.r` (or some other name - just a file that roxygen \"owns\")"}}
{"actor":{"display_login":"hadley"}}