{"action":"closed","issue":{"url":"https://api.github.com/repos/r-lib/pkgdown/issues/288","repository_url":"https://api.github.com/repos/r-lib/pkgdown","labels_url":"https://api.github.com/repos/r-lib/pkgdown/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/r-lib/pkgdown/issues/288/comments","events_url":"https://api.github.com/repos/r-lib/pkgdown/issues/288/events","html_url":"https://github.com/r-lib/pkgdown/issues/288","id":215237750,"number":288,"title":"Parse usage section","user":{"login":"hadley","id":4196,"avatar_url":"https://avatars3.githubusercontent.com/u/4196?v=4","gravatar_id":"","url":"https://api.github.com/users/hadley","html_url":"https://github.com/hadley","followers_url":"https://api.github.com/users/hadley/followers","following_url":"https://api.github.com/users/hadley/following{/other_user}","gists_url":"https://api.github.com/users/hadley/gists{/gist_id}","starred_url":"https://api.github.com/users/hadley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadley/subscriptions","organizations_url":"https://api.github.com/users/hadley/orgs","repos_url":"https://api.github.com/users/hadley/repos","events_url":"https://api.github.com/users/hadley/events{/privacy}","received_events_url":"https://api.github.com/users/hadley/received_events","type":"User","site_admin":false},"labels":[{"id":559088607,"url":"https://api.github.com/repos/r-lib/pkgdown/labels/feature","name":"feature","color":"009800","default":false},{"id":559090447,"url":"https://api.github.com/repos/r-lib/pkgdown/labels/reference","name":"reference","color":"eeeeee","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-19T03:06:58Z","updated_at":"2018-03-16T19:16:30Z","closed_at":"2018-03-16T19:16:30Z","author_association":"OWNER","body":"Enables:\r\n\r\n* documentation & source lookup (#234)\r\n* better listing on reference index (#256)\r\n\r\n```\r\nname(args)\r\nx %name% y\r\nname(args) <- values\r\n\r\n\\method{generic}{class}(args)\r\n\\method{[}{factor}(args)\r\n\\method{generic}{class}(arglist) <- value\r\n```\r\n\r\n`\\S3method{}` is an alias for method; `\\S4method{}` is used for S4 methods.\r\n\r\nTo parse, a reasonable strategy would be to replace `\\S3method{x}{y}` with ``S3method(`x`, list(y))`` and then rely on `parse()`. Will have to do a little post processing if discover assignment. Then need to look up in the package namespace, using `get()`, `getS3method()`, and `getMethod()`.\r\n"}}
{"actor":{"display_login":"hadley"}}