{"action":"closed","issue":{"url":"https://api.github.com/repos/klutometis/roxygen/issues/540","repository_url":"https://api.github.com/repos/klutometis/roxygen","labels_url":"https://api.github.com/repos/klutometis/roxygen/issues/540/labels{/name}","comments_url":"https://api.github.com/repos/klutometis/roxygen/issues/540/comments","events_url":"https://api.github.com/repos/klutometis/roxygen/issues/540/events","html_url":"https://github.com/klutometis/roxygen/issues/540","id":192772479,"number":540,"title":"documenting generic expressions","user":{"login":"markvanderloo","id":1927426,"avatar_url":"https://avatars.githubusercontent.com/u/1927426?v=3","gravatar_id":"","url":"https://api.github.com/users/markvanderloo","html_url":"https://github.com/markvanderloo","followers_url":"https://api.github.com/users/markvanderloo/followers","following_url":"https://api.github.com/users/markvanderloo/following{/other_user}","gists_url":"https://api.github.com/users/markvanderloo/gists{/gist_id}","starred_url":"https://api.github.com/users/markvanderloo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markvanderloo/subscriptions","organizations_url":"https://api.github.com/users/markvanderloo/orgs","repos_url":"https://api.github.com/users/markvanderloo/repos","events_url":"https://api.github.com/users/markvanderloo/events{/privacy}","received_events_url":"https://api.github.com/users/markvanderloo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T07:26:36Z","updated_at":"2016-12-15T04:24:38Z","closed_at":"2016-12-15T04:24:38Z","body":"Hi there,\r\n\r\nI would like to build on `roxygen2` to be able add metadata to general expressions, for example\r\n```r\r\n#' Age positivity\r\n#' @name agepositive\r\nage > 0\r\n\r\n#' Legal employment age\r\n#' @name legal_age\r\nif ( age < 15 ) job_status == \"no job\"\r\n```\r\nand so on. The use case is our [validate](https://github.com/data-cleaning/validate) package, where an expression is a statement used to check data against domain knowledge.\r\n\r\nI can't use `roxygenize` with custom roclets because that calls `parse_text` , and that  evaluates the above code using `sys.source`.\r\n\r\nHowever, I would probably be saved if I can call the now unexported `parse_blocks` or have the option to make `parse_text` skip the evaluation part.\r\n\r\nSo my question is to please consider one of these options (or another I haven't seen) to support documenting generic expressions.\r\n\r\n\r\n"}}
{"actor":{"display_login":"hadley"}}