{"action":"opened","number":123,"pull_request":{"url":"https://api.github.com/repos/rstudio/gt/pulls/123","id":242157419,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMTU3NDE5","html_url":"https://github.com/rstudio/gt/pull/123","diff_url":"https://github.com/rstudio/gt/pull/123.diff","patch_url":"https://github.com/rstudio/gt/pull/123.patch","issue_url":"https://api.github.com/repos/rstudio/gt/issues/123","number":123,"state":"open","locked":false,"title":"Add function to get LaTeX dependencies for external use","user":{"login":"rich-iannone","id":5612024,"node_id":"MDQ6VXNlcjU2MTIwMjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5612024?v=4","gravatar_id":"","url":"https://api.github.com/users/rich-iannone","html_url":"https://github.com/rich-iannone","followers_url":"https://api.github.com/users/rich-iannone/followers","following_url":"https://api.github.com/users/rich-iannone/following{/other_user}","gists_url":"https://api.github.com/users/rich-iannone/gists{/gist_id}","starred_url":"https://api.github.com/users/rich-iannone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rich-iannone/subscriptions","organizations_url":"https://api.github.com/users/rich-iannone/orgs","repos_url":"https://api.github.com/users/rich-iannone/repos","events_url":"https://api.github.com/users/rich-iannone/events{/privacy}","received_events_url":"https://api.github.com/users/rich-iannone/received_events","type":"User","site_admin":false},"body":"An exported function is added here (`get_latex_dependencies()`) to make it easier to declare which packages are required for **gt** when using Rnw. A minimal example:\r\n\r\n````\r\n%!sweave=knitr\r\n\r\n\\documentclass{article}\r\n\r\n<<results='asis', echo=FALSE>>=\r\ngt::get_latex_dependencies()\r\n@\r\n\r\n\\begin{document}\r\n\r\nContent...\r\n\r\n\\end{document}\r\n````  \r\n\r\nUsing the `get_latex_dependencies()` function in this way places the LaTeX `\\use_package{}` statements before the document start, which is convenient when using a **gt** table within the document. This change also centralizes the names of the LaTeX packages that are used in the LaTeX-rendering pipeline and in the aforementioned function.\r\n","created_at":"2019-01-04T01:49:59Z","updated_at":"2019-01-04T01:49:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rstudio/gt/pulls/123/commits","review_comments_url":"https://api.github.com/repos/rstudio/gt/pulls/123/comments","review_comment_url":"https://api.github.com/repos/rstudio/gt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rstudio/gt/issues/123/comments","statuses_url":"https://api.github.com/repos/rstudio/gt/statuses/4d3d76613b262a69e7a63e4910357c36faac80c3","head":{"label":"rstudio:latex-headers","ref":"latex-headers","sha":"4d3d76613b262a69e7a63e4910357c36faac80c3","user":{"login":"rstudio","id":513560,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzU2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/513560?v=4","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"repo":{"id":126038547,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYwMzg1NDc=","name":"gt","full_name":"rstudio/gt","private":false,"owner":{"login":"rstudio","id":513560,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzU2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/513560?v=4","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rstudio/gt","description":"Easily generate information-rich, publication-quality tables from R","fork":false,"url":"https://api.github.com/repos/rstudio/gt","forks_url":"https://api.github.com/repos/rstudio/gt/forks","keys_url":"https://api.github.com/repos/rstudio/gt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rstudio/gt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rstudio/gt/teams","hooks_url":"https://api.github.com/repos/rstudio/gt/hooks","issue_events_url":"https://api.github.com/repos/rstudio/gt/issues/events{/number}","events_url":"https://api.github.com/repos/rstudio/gt/events","assignees_url":"https://api.github.com/repos/rstudio/gt/assignees{/user}","branches_url":"https://api.github.com/repos/rstudio/gt/branches{/branch}","tags_url":"https://api.github.com/repos/rstudio/gt/tags","blobs_url":"https://api.github.com/repos/rstudio/gt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rstudio/gt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rstudio/gt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rstudio/gt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rstudio/gt/statuses/{sha}","languages_url":"https://api.github.com/repos/rstudio/gt/languages","stargazers_url":"https://api.github.com/repos/rstudio/gt/stargazers","contributors_url":"https://api.github.com/repos/rstudio/gt/contributors","subscribers_url":"https://api.github.com/repos/rstudio/gt/subscribers","subscription_url":"https://api.github.com/repos/rstudio/gt/subscription","commits_url":"https://api.github.com/repos/rstudio/gt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rstudio/gt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rstudio/gt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rstudio/gt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rstudio/gt/contents/{+path}","compare_url":"https://api.github.com/repos/rstudio/gt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rstudio/gt/merges","archive_url":"https://api.github.com/repos/rstudio/gt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rstudio/gt/downloads","issues_url":"https://api.github.com/repos/rstudio/gt/issues{/number}","pulls_url":"https://api.github.com/repos/rstudio/gt/pulls{/number}","milestones_url":"https://api.github.com/repos/rstudio/gt/milestones{/number}","notifications_url":"https://api.github.com/repos/rstudio/gt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rstudio/gt/labels{/name}","releases_url":"https://api.github.com/repos/rstudio/gt/releases{/id}","deployments_url":"https://api.github.com/repos/rstudio/gt/deployments","created_at":"2018-03-20T15:18:51Z","updated_at":"2019-01-04T01:46:30Z","pushed_at":"2019-01-04T01:36:55Z","git_url":"git://github.com/rstudio/gt.git","ssh_url":"git@github.com:rstudio/gt.git","clone_url":"https://github.com/rstudio/gt.git","svn_url":"https://github.com/rstudio/gt","homepage":"https://gt.rstudio.com","size":78793,"stargazers_count":516,"watchers_count":516,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":23,"open_issues":51,"watchers":516,"default_branch":"master"}},"base":{"label":"rstudio:master","ref":"master","sha":"9df3b6ce4488fb3570607c1846338b00a8d651b0","user":{"login":"rstudio","id":513560,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzU2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/513560?v=4","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"repo":{"id":126038547,"node_id":"MDEwOlJlcG9zaXRvcnkxMjYwMzg1NDc=","name":"gt","full_name":"rstudio/gt","private":false,"owner":{"login":"rstudio","id":513560,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMzU2MA==","avatar_url":"https://avatars1.githubusercontent.com/u/513560?v=4","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rstudio/gt","description":"Easily generate information-rich, publication-quality tables from R","fork":false,"url":"https://api.github.com/repos/rstudio/gt","forks_url":"https://api.github.com/repos/rstudio/gt/forks","keys_url":"https://api.github.com/repos/rstudio/gt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rstudio/gt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rstudio/gt/teams","hooks_url":"https://api.github.com/repos/rstudio/gt/hooks","issue_events_url":"https://api.github.com/repos/rstudio/gt/issues/events{/number}","events_url":"https://api.github.com/repos/rstudio/gt/events","assignees_url":"https://api.github.com/repos/rstudio/gt/assignees{/user}","branches_url":"https://api.github.com/repos/rstudio/gt/branches{/branch}","tags_url":"https://api.github.com/repos/rstudio/gt/tags","blobs_url":"https://api.github.com/repos/rstudio/gt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rstudio/gt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rstudio/gt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rstudio/gt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rstudio/gt/statuses/{sha}","languages_url":"https://api.github.com/repos/rstudio/gt/languages","stargazers_url":"https://api.github.com/repos/rstudio/gt/stargazers","contributors_url":"https://api.github.com/repos/rstudio/gt/contributors","subscribers_url":"https://api.github.com/repos/rstudio/gt/subscribers","subscription_url":"https://api.github.com/repos/rstudio/gt/subscription","commits_url":"https://api.github.com/repos/rstudio/gt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rstudio/gt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rstudio/gt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rstudio/gt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rstudio/gt/contents/{+path}","compare_url":"https://api.github.com/repos/rstudio/gt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rstudio/gt/merges","archive_url":"https://api.github.com/repos/rstudio/gt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rstudio/gt/downloads","issues_url":"https://api.github.com/repos/rstudio/gt/issues{/number}","pulls_url":"https://api.github.com/repos/rstudio/gt/pulls{/number}","milestones_url":"https://api.github.com/repos/rstudio/gt/milestones{/number}","notifications_url":"https://api.github.com/repos/rstudio/gt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rstudio/gt/labels{/name}","releases_url":"https://api.github.com/repos/rstudio/gt/releases{/id}","deployments_url":"https://api.github.com/repos/rstudio/gt/deployments","created_at":"2018-03-20T15:18:51Z","updated_at":"2019-01-04T01:46:30Z","pushed_at":"2019-01-04T01:36:55Z","git_url":"git://github.com/rstudio/gt.git","ssh_url":"git@github.com:rstudio/gt.git","clone_url":"https://github.com/rstudio/gt.git","svn_url":"https://github.com/rstudio/gt","homepage":"https://gt.rstudio.com","size":78793,"stargazers_count":516,"watchers_count":516,"language":"R","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":23,"open_issues":51,"watchers":516,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rstudio/gt/pulls/123"},"html":{"href":"https://github.com/rstudio/gt/pull/123"},"issue":{"href":"https://api.github.com/repos/rstudio/gt/issues/123"},"comments":{"href":"https://api.github.com/repos/rstudio/gt/issues/123/comments"},"review_comments":{"href":"https://api.github.com/repos/rstudio/gt/pulls/123/comments"},"review_comment":{"href":"https://api.github.com/repos/rstudio/gt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rstudio/gt/pulls/123/commits"},"statuses":{"href":"https://api.github.com/repos/rstudio/gt/statuses/4d3d76613b262a69e7a63e4910357c36faac80c3"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":7,"additions":61,"deletions":12,"changed_files":11}}
{"actor":{"display_login":"rich-iannone"}}