{"action":"closed","number":1177,"pull_request":{"url":"https://api.github.com/repos/yihui/knitr/pulls/1177","id":61838283,"html_url":"https://github.com/yihui/knitr/pull/1177","diff_url":"https://github.com/yihui/knitr/pull/1177.diff","patch_url":"https://github.com/yihui/knitr/pull/1177.patch","issue_url":"https://api.github.com/repos/yihui/knitr/issues/1177","number":1177,"state":"closed","locked":false,"title":"Add svg output to tikz engine (use fig.ext=\"svg\"). ","user":{"login":"dkilfoyle","id":4541024,"avatar_url":"https://avatars.githubusercontent.com/u/4541024?v=3","gravatar_id":"","url":"https://api.github.com/users/dkilfoyle","html_url":"https://github.com/dkilfoyle","followers_url":"https://api.github.com/users/dkilfoyle/followers","following_url":"https://api.github.com/users/dkilfoyle/following{/other_user}","gists_url":"https://api.github.com/users/dkilfoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/dkilfoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkilfoyle/subscriptions","organizations_url":"https://api.github.com/users/dkilfoyle/orgs","repos_url":"https://api.github.com/users/dkilfoyle/repos","events_url":"https://api.github.com/users/dkilfoyle/events{/privacy}","received_events_url":"https://api.github.com/users/dkilfoyle/received_events","type":"User","site_admin":false},"body":"As requested [here](https://github.com/yihui/knitr-examples/pull/45) this pull request allows the tikz engine to output svg files by the fig.ext option. eg\r\n\r\n```\r\n```{r tikz-ex, engine=\"tikz\", fig.ext=\"svg\"}\r\n```\r\n\r\nIf you use fig.ext = \"png\" then tikz will use imagemagick to convert to a raster png\r\nIf you don't use the fig.ext option then tikz will output the default pdf.\r\n\r\nNote: The fig.ext=\"svg\" option requires that dvisvgm and ghostscript are installed and on path (ghostscript bin directory).\r\n","created_at":"2016-03-06T09:26:14Z","updated_at":"2016-03-06T20:00:00Z","closed_at":"2016-03-06T20:00:00Z","merged_at":"2016-03-06T20:00:00Z","merge_commit_sha":"8d93b75491926fa50ef8d3618eb2397150f09ca2","assignee":null,"milestone":{"url":"https://api.github.com/repos/yihui/knitr/milestones/27","html_url":"https://github.com/yihui/knitr/milestones/v1.13","labels_url":"https://api.github.com/repos/yihui/knitr/milestones/27/labels","id":1537724,"number":27,"title":"v1.13","description":"","creator":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":17,"state":"open","created_at":"2016-01-23T03:45:36Z","updated_at":"2016-03-06T20:00:00Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/yihui/knitr/pulls/1177/commits","review_comments_url":"https://api.github.com/repos/yihui/knitr/pulls/1177/comments","review_comment_url":"https://api.github.com/repos/yihui/knitr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yihui/knitr/issues/1177/comments","statuses_url":"https://api.github.com/repos/yihui/knitr/statuses/2ad20a7d3178c80017bbec5ddef12753158626aa","head":{"label":"dkilfoyle:master","ref":"master","sha":"2ad20a7d3178c80017bbec5ddef12753158626aa","user":{"login":"dkilfoyle","id":4541024,"avatar_url":"https://avatars.githubusercontent.com/u/4541024?v=3","gravatar_id":"","url":"https://api.github.com/users/dkilfoyle","html_url":"https://github.com/dkilfoyle","followers_url":"https://api.github.com/users/dkilfoyle/followers","following_url":"https://api.github.com/users/dkilfoyle/following{/other_user}","gists_url":"https://api.github.com/users/dkilfoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/dkilfoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkilfoyle/subscriptions","organizations_url":"https://api.github.com/users/dkilfoyle/orgs","repos_url":"https://api.github.com/users/dkilfoyle/repos","events_url":"https://api.github.com/users/dkilfoyle/events{/privacy}","received_events_url":"https://api.github.com/users/dkilfoyle/received_events","type":"User","site_admin":false},"repo":{"id":53245986,"name":"knitr","full_name":"dkilfoyle/knitr","owner":{"login":"dkilfoyle","id":4541024,"avatar_url":"https://avatars.githubusercontent.com/u/4541024?v=3","gravatar_id":"","url":"https://api.github.com/users/dkilfoyle","html_url":"https://github.com/dkilfoyle","followers_url":"https://api.github.com/users/dkilfoyle/followers","following_url":"https://api.github.com/users/dkilfoyle/following{/other_user}","gists_url":"https://api.github.com/users/dkilfoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/dkilfoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkilfoyle/subscriptions","organizations_url":"https://api.github.com/users/dkilfoyle/orgs","repos_url":"https://api.github.com/users/dkilfoyle/repos","events_url":"https://api.github.com/users/dkilfoyle/events{/privacy}","received_events_url":"https://api.github.com/users/dkilfoyle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkilfoyle/knitr","description":"A general-purpose tool for dynamic report generation in R","fork":true,"url":"https://api.github.com/repos/dkilfoyle/knitr","forks_url":"https://api.github.com/repos/dkilfoyle/knitr/forks","keys_url":"https://api.github.com/repos/dkilfoyle/knitr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkilfoyle/knitr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkilfoyle/knitr/teams","hooks_url":"https://api.github.com/repos/dkilfoyle/knitr/hooks","issue_events_url":"https://api.github.com/repos/dkilfoyle/knitr/issues/events{/number}","events_url":"https://api.github.com/repos/dkilfoyle/knitr/events","assignees_url":"https://api.github.com/repos/dkilfoyle/knitr/assignees{/user}","branches_url":"https://api.github.com/repos/dkilfoyle/knitr/branches{/branch}","tags_url":"https://api.github.com/repos/dkilfoyle/knitr/tags","blobs_url":"https://api.github.com/repos/dkilfoyle/knitr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkilfoyle/knitr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkilfoyle/knitr/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkilfoyle/knitr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkilfoyle/knitr/statuses/{sha}","languages_url":"https://api.github.com/repos/dkilfoyle/knitr/languages","stargazers_url":"https://api.github.com/repos/dkilfoyle/knitr/stargazers","contributors_url":"https://api.github.com/repos/dkilfoyle/knitr/contributors","subscribers_url":"https://api.github.com/repos/dkilfoyle/knitr/subscribers","subscription_url":"https://api.github.com/repos/dkilfoyle/knitr/subscription","commits_url":"https://api.github.com/repos/dkilfoyle/knitr/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkilfoyle/knitr/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkilfoyle/knitr/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkilfoyle/knitr/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkilfoyle/knitr/contents/{+path}","compare_url":"https://api.github.com/repos/dkilfoyle/knitr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkilfoyle/knitr/merges","archive_url":"https://api.github.com/repos/dkilfoyle/knitr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkilfoyle/knitr/downloads","issues_url":"https://api.github.com/repos/dkilfoyle/knitr/issues{/number}","pulls_url":"https://api.github.com/repos/dkilfoyle/knitr/pulls{/number}","milestones_url":"https://api.github.com/repos/dkilfoyle/knitr/milestones{/number}","notifications_url":"https://api.github.com/repos/dkilfoyle/knitr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkilfoyle/knitr/labels{/name}","releases_url":"https://api.github.com/repos/dkilfoyle/knitr/releases{/id}","deployments_url":"https://api.github.com/repos/dkilfoyle/knitr/deployments","created_at":"2016-03-06T08:50:25Z","updated_at":"2016-03-06T08:50:26Z","pushed_at":"2016-03-06T09:16:42Z","git_url":"git://github.com/dkilfoyle/knitr.git","ssh_url":"git@github.com:dkilfoyle/knitr.git","clone_url":"https://github.com/dkilfoyle/knitr.git","svn_url":"https://github.com/dkilfoyle/knitr","homepage":"http://yihui.name/knitr","size":8428,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yihui:master","ref":"master","sha":"d74ba6f1204e41dfb8311650cd92ef827759a607","user":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"repo":{"id":2594513,"name":"knitr","full_name":"yihui/knitr","owner":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yihui/knitr","description":"A general-purpose tool for dynamic report generation in R","fork":false,"url":"https://api.github.com/repos/yihui/knitr","forks_url":"https://api.github.com/repos/yihui/knitr/forks","keys_url":"https://api.github.com/repos/yihui/knitr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yihui/knitr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yihui/knitr/teams","hooks_url":"https://api.github.com/repos/yihui/knitr/hooks","issue_events_url":"https://api.github.com/repos/yihui/knitr/issues/events{/number}","events_url":"https://api.github.com/repos/yihui/knitr/events","assignees_url":"https://api.github.com/repos/yihui/knitr/assignees{/user}","branches_url":"https://api.github.com/repos/yihui/knitr/branches{/branch}","tags_url":"https://api.github.com/repos/yihui/knitr/tags","blobs_url":"https://api.github.com/repos/yihui/knitr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yihui/knitr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yihui/knitr/git/refs{/sha}","trees_url":"https://api.github.com/repos/yihui/knitr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yihui/knitr/statuses/{sha}","languages_url":"https://api.github.com/repos/yihui/knitr/languages","stargazers_url":"https://api.github.com/repos/yihui/knitr/stargazers","contributors_url":"https://api.github.com/repos/yihui/knitr/contributors","subscribers_url":"https://api.github.com/repos/yihui/knitr/subscribers","subscription_url":"https://api.github.com/repos/yihui/knitr/subscription","commits_url":"https://api.github.com/repos/yihui/knitr/commits{/sha}","git_commits_url":"https://api.github.com/repos/yihui/knitr/git/commits{/sha}","comments_url":"https://api.github.com/repos/yihui/knitr/comments{/number}","issue_comment_url":"https://api.github.com/repos/yihui/knitr/issues/comments{/number}","contents_url":"https://api.github.com/repos/yihui/knitr/contents/{+path}","compare_url":"https://api.github.com/repos/yihui/knitr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yihui/knitr/merges","archive_url":"https://api.github.com/repos/yihui/knitr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yihui/knitr/downloads","issues_url":"https://api.github.com/repos/yihui/knitr/issues{/number}","pulls_url":"https://api.github.com/repos/yihui/knitr/pulls{/number}","milestones_url":"https://api.github.com/repos/yihui/knitr/milestones{/number}","notifications_url":"https://api.github.com/repos/yihui/knitr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yihui/knitr/labels{/name}","releases_url":"https://api.github.com/repos/yihui/knitr/releases{/id}","deployments_url":"https://api.github.com/repos/yihui/knitr/deployments","created_at":"2011-10-17T20:09:04Z","updated_at":"2016-03-03T13:48:48Z","pushed_at":"2016-03-06T20:00:00Z","git_url":"git://github.com/yihui/knitr.git","ssh_url":"git@github.com:yihui/knitr.git","clone_url":"https://github.com/yihui/knitr.git","svn_url":"https://github.com/yihui/knitr","homepage":"http://yihui.name/knitr","size":8797,"stargazers_count":1106,"watchers_count":1106,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":501,"mirror_url":null,"open_issues_count":13,"forks":501,"open_issues":13,"watchers":1106,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yihui/knitr/pulls/1177"},"html":{"href":"https://github.com/yihui/knitr/pull/1177"},"issue":{"href":"https://api.github.com/repos/yihui/knitr/issues/1177"},"comments":{"href":"https://api.github.com/repos/yihui/knitr/issues/1177/comments"},"review_comments":{"href":"https://api.github.com/repos/yihui/knitr/pulls/1177/comments"},"review_comment":{"href":"https://api.github.com/repos/yihui/knitr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yihui/knitr/pulls/1177/commits"},"statuses":{"href":"https://api.github.com/repos/yihui/knitr/statuses/2ad20a7d3178c80017bbec5ddef12753158626aa"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":37,"deletions":12,"changed_files":1}}