{"action":"created","issue":{"url":"https://api.github.com/repos/hadley/ggplot2-book/issues/17","labels_url":"https://api.github.com/repos/hadley/ggplot2-book/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/hadley/ggplot2-book/issues/17/comments","events_url":"https://api.github.com/repos/hadley/ggplot2-book/issues/17/events","html_url":"https://github.com/hadley/ggplot2-book/issues/17","id":53904436,"number":17,"title":"Think about makefile","user":{"login":"hadley","id":4196,"avatar_url":"https://avatars.githubusercontent.com/u/4196?v=3","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":[],"state":"closed","locked":false,"assignee":{"login":"cpsievert","id":1365941,"avatar_url":"https://avatars.githubusercontent.com/u/1365941?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsievert","html_url":"https://github.com/cpsievert","followers_url":"https://api.github.com/users/cpsievert/followers","following_url":"https://api.github.com/users/cpsievert/following{/other_user}","gists_url":"https://api.github.com/users/cpsievert/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsievert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsievert/subscriptions","organizations_url":"https://api.github.com/users/cpsievert/orgs","repos_url":"https://api.github.com/users/cpsievert/repos","events_url":"https://api.github.com/users/cpsievert/events{/privacy}","received_events_url":"https://api.github.com/users/cpsievert/received_events","type":"User","site_admin":false},"milestone":null,"comments":24,"created_at":"2015-01-09T19:23:02Z","updated_at":"2015-02-02T20:24:24Z","closed_at":"2015-01-28T18:17:25Z","body":"* So we could bind to cmd + shift + B in Rstudio\r\n\r\nHere are a couple of example make files from other projects:\r\n\r\n```\r\nHTML_FILES := $(patsubst %.md, %.html, $(shell find . -name '*.md'  \\! -name 'navbar.md'))\r\n\r\nall: $(HTML_FILES)\r\n\r\n$(HTML_FILES): %.html: %.md navbar.html ../template.html\r\n\tpandoc '$<' -o '$@' --smart --template ../template.html --include-before navbar.html\r\n\r\nnavbar.html: navbar.md\r\n\tpandoc '$<' -o '$@' --smart\r\n\r\n.PHONY: clean\r\nclean:\r\n\t$(RM) $(HTML_FILES)\r\n```\r\n\r\n* https://github.com/rstudio/dygraphs/blob/gh-pages/Makefile"},"comment":{"url":"https://api.github.com/repos/hadley/ggplot2-book/issues/comments/72530596","html_url":"https://github.com/hadley/ggplot2-book/issues/17#issuecomment-72530596","issue_url":"https://api.github.com/repos/hadley/ggplot2-book/issues/17","id":72530596,"user":{"login":"cpsievert","id":1365941,"avatar_url":"https://avatars.githubusercontent.com/u/1365941?v=3","gravatar_id":"","url":"https://api.github.com/users/cpsievert","html_url":"https://github.com/cpsievert","followers_url":"https://api.github.com/users/cpsievert/followers","following_url":"https://api.github.com/users/cpsievert/following{/other_user}","gists_url":"https://api.github.com/users/cpsievert/gists{/gist_id}","starred_url":"https://api.github.com/users/cpsievert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpsievert/subscriptions","organizations_url":"https://api.github.com/users/cpsievert/orgs","repos_url":"https://api.github.com/users/cpsievert/repos","events_url":"https://api.github.com/users/cpsievert/events{/privacy}","received_events_url":"https://api.github.com/users/cpsievert/received_events","type":"User","site_admin":false},"created_at":"2015-02-02T20:24:23Z","updated_at":"2015-02-02T20:24:23Z","body":"Eventually we may have 'standalone' chapters, but this is not very high on the TODO list. `make` is smart enough to only re-render chapters that have been updated, so you shouldn't need to render them using anything other than `make`."}}