{"action":"created","comment":{"url":"https://api.github.com/repos/eddelbuettel/drat/pulls/comments/26899633","id":26899633,"diff_hunk":"@@ -27,33 +27,68 @@ See the next section about to get started, the package documentation, the\n \n ### Getting Started\n \n+#### Installing drat\n+\n You can install the package from [CRAN](http://cran.r-project.org) via the\n-standard `install.packages(\"drat\")`.  Alternatively, for a first\n-installation, you can also do\n+standard `install.packages(\"drat\")`. See below for a way to install drat \n+from it's own drat repository.\n \n-```{.r}\n-install.packages(\"drat\", repos=\"http://eddelbuettel.github.io/drat\")\n-``` \n+#### Adding packages to a new drat repository\n \n-to install directly from the drat repository.  After either initial\n-installation, you can add line such as\n+The following assumes that you want to add a drat repository to your github pages. \n+The github pages are checked out at `/src/repo` and available on the web \n+at <github_username>.github.io.\n+\n+As a first step, add a `drat` subdirectory (`/src/repo/drat`). This is where \n+new packages should be added to.\n+\n+Package insertion into a repository then works by passing the package tarball\n+filename as an argument to `insertPackage()` or its shorthand variant:\n ","path":"README.md","position":28,"original_position":28,"commit_id":"4dda906450da1e2d198f5a1b180db0c0eda28e24","original_commit_id":"4dda906450da1e2d198f5a1b180db0c0eda28e24","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"body":"I've just published a git repo, where the drat repo is on master: https://github.com/JanSchulz/JanSchulz.github.io\r\n\r\nSee also https://help.github.com/articles/user-organization-and-project-pages/#user--organization-pages","created_at":"2015-03-22T04:12:37Z","updated_at":"2015-03-22T04:12:37Z","html_url":"https://github.com/eddelbuettel/drat/pull/11#discussion_r26899633","pull_request_url":"https://api.github.com/repos/eddelbuettel/drat/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/eddelbuettel/drat/pulls/comments/26899633"},"html":{"href":"https://github.com/eddelbuettel/drat/pull/11#discussion_r26899633"},"pull_request":{"href":"https://api.github.com/repos/eddelbuettel/drat/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/eddelbuettel/drat/pulls/11","id":31681996,"html_url":"https://github.com/eddelbuettel/drat/pull/11","diff_url":"https://github.com/eddelbuettel/drat/pull/11.diff","patch_url":"https://github.com/eddelbuettel/drat/pull/11.patch","issue_url":"https://api.github.com/repos/eddelbuettel/drat/issues/11","number":11,"state":"open","locked":false,"title":"Workflow updates","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"body":"This adds three little code changes and a README update as discussed in #10: \r\n\r\n* create `src/contrib` if it doesn't exist\r\n* tell the user what to do if the repo directory does not exist\r\n* check if the user used a source package (and not a windows/macosx binary)\r\n\r\nThe README is now structured in a way how a new user probably uses drat:\r\n\r\n1) install drat\r\n2) add a package to a drat repository (i.e. a github page)\r\n3) how to install packages from this drat repository \r\n\r\nI lightly checked the code changes:\r\n\r\n```\r\n> options(dratRepo=\"C:\\\\temp\\\\drat\")\r\n> drat:::insert(\"C:\\\\Rtools\\\\rzmq_0.7.7.tar.gz\")\r\n> drat:::insert(\"C:\\\\Rtools\\\\rzmq_0.7.7.zip\")\r\nError in insertPackage(...) : \r\n  Windows binary packages are not yet supported (C:\\Rtools\\rzmq_0.7.7.zip)FALSE\r\n> options(dratRepo=\"C:\\\\temp\\\\drat2\")\r\n> drat:::insert(\"C:\\\\Rtools\\\\rzmq_0.7.7.tar.gz\")\r\nError in insertPackage(...) : \r\n  Repository directory C:\\temp\\drat2 not found\r\nIf you want to use a checkout of your github pages,\r\nadd a subdir (e.g. 'drat') and then set 'option(dratRepo = \"/path/to/githubpage/drat/\")'\r\nFALSE","created_at":"2015-03-22T02:45:11Z","updated_at":"2015-03-22T04:12:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d9d85075abafb639077e24f83addd8377cea654","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eddelbuettel/drat/pulls/11/commits","review_comments_url":"https://api.github.com/repos/eddelbuettel/drat/pulls/11/comments","review_comment_url":"https://api.github.com/repos/eddelbuettel/drat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eddelbuettel/drat/issues/11/comments","statuses_url":"https://api.github.com/repos/eddelbuettel/drat/statuses/4dda906450da1e2d198f5a1b180db0c0eda28e24","head":{"label":"JanSchulz:workflow_updates","ref":"workflow_updates","sha":"4dda906450da1e2d198f5a1b180db0c0eda28e24","user":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"repo":{"id":32658983,"name":"drat","full_name":"JanSchulz/drat","owner":{"login":"JanSchulz","id":890156,"avatar_url":"https://avatars.githubusercontent.com/u/890156?v=3","gravatar_id":"","url":"https://api.github.com/users/JanSchulz","html_url":"https://github.com/JanSchulz","followers_url":"https://api.github.com/users/JanSchulz/followers","following_url":"https://api.github.com/users/JanSchulz/following{/other_user}","gists_url":"https://api.github.com/users/JanSchulz/gists{/gist_id}","starred_url":"https://api.github.com/users/JanSchulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanSchulz/subscriptions","organizations_url":"https://api.github.com/users/JanSchulz/orgs","repos_url":"https://api.github.com/users/JanSchulz/repos","events_url":"https://api.github.com/users/JanSchulz/events{/privacy}","received_events_url":"https://api.github.com/users/JanSchulz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JanSchulz/drat","description":"Drat R Archive Template","fork":true,"url":"https://api.github.com/repos/JanSchulz/drat","forks_url":"https://api.github.com/repos/JanSchulz/drat/forks","keys_url":"https://api.github.com/repos/JanSchulz/drat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JanSchulz/drat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JanSchulz/drat/teams","hooks_url":"https://api.github.com/repos/JanSchulz/drat/hooks","issue_events_url":"https://api.github.com/repos/JanSchulz/drat/issues/events{/number}","events_url":"https://api.github.com/repos/JanSchulz/drat/events","assignees_url":"https://api.github.com/repos/JanSchulz/drat/assignees{/user}","branches_url":"https://api.github.com/repos/JanSchulz/drat/branches{/branch}","tags_url":"https://api.github.com/repos/JanSchulz/drat/tags","blobs_url":"https://api.github.com/repos/JanSchulz/drat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JanSchulz/drat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JanSchulz/drat/git/refs{/sha}","trees_url":"https://api.github.com/repos/JanSchulz/drat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JanSchulz/drat/statuses/{sha}","languages_url":"https://api.github.com/repos/JanSchulz/drat/languages","stargazers_url":"https://api.github.com/repos/JanSchulz/drat/stargazers","contributors_url":"https://api.github.com/repos/JanSchulz/drat/contributors","subscribers_url":"https://api.github.com/repos/JanSchulz/drat/subscribers","subscription_url":"https://api.github.com/repos/JanSchulz/drat/subscription","commits_url":"https://api.github.com/repos/JanSchulz/drat/commits{/sha}","git_commits_url":"https://api.github.com/repos/JanSchulz/drat/git/commits{/sha}","comments_url":"https://api.github.com/repos/JanSchulz/drat/comments{/number}","issue_comment_url":"https://api.github.com/repos/JanSchulz/drat/issues/comments{/number}","contents_url":"https://api.github.com/repos/JanSchulz/drat/contents/{+path}","compare_url":"https://api.github.com/repos/JanSchulz/drat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JanSchulz/drat/merges","archive_url":"https://api.github.com/repos/JanSchulz/drat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JanSchulz/drat/downloads","issues_url":"https://api.github.com/repos/JanSchulz/drat/issues{/number}","pulls_url":"https://api.github.com/repos/JanSchulz/drat/pulls{/number}","milestones_url":"https://api.github.com/repos/JanSchulz/drat/milestones{/number}","notifications_url":"https://api.github.com/repos/JanSchulz/drat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JanSchulz/drat/labels{/name}","releases_url":"https://api.github.com/repos/JanSchulz/drat/releases{/id}","created_at":"2015-03-22T02:36:35Z","updated_at":"2015-03-22T02:36:37Z","pushed_at":"2015-03-22T03:27:20Z","git_url":"git://github.com/JanSchulz/drat.git","ssh_url":"git@github.com:JanSchulz/drat.git","clone_url":"https://github.com/JanSchulz/drat.git","svn_url":"https://github.com/JanSchulz/drat","homepage":null,"size":431,"stargazers_count":0,"watchers_count":0,"language":"R","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"eddelbuettel:master","ref":"master","sha":"1c4704ac1810b92b75669997a8f9d4656d237d6f","user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"repo":{"id":30158790,"name":"drat","full_name":"eddelbuettel/drat","owner":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eddelbuettel/drat","description":"Drat R Archive Template","fork":false,"url":"https://api.github.com/repos/eddelbuettel/drat","forks_url":"https://api.github.com/repos/eddelbuettel/drat/forks","keys_url":"https://api.github.com/repos/eddelbuettel/drat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eddelbuettel/drat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eddelbuettel/drat/teams","hooks_url":"https://api.github.com/repos/eddelbuettel/drat/hooks","issue_events_url":"https://api.github.com/repos/eddelbuettel/drat/issues/events{/number}","events_url":"https://api.github.com/repos/eddelbuettel/drat/events","assignees_url":"https://api.github.com/repos/eddelbuettel/drat/assignees{/user}","branches_url":"https://api.github.com/repos/eddelbuettel/drat/branches{/branch}","tags_url":"https://api.github.com/repos/eddelbuettel/drat/tags","blobs_url":"https://api.github.com/repos/eddelbuettel/drat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eddelbuettel/drat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eddelbuettel/drat/git/refs{/sha}","trees_url":"https://api.github.com/repos/eddelbuettel/drat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eddelbuettel/drat/statuses/{sha}","languages_url":"https://api.github.com/repos/eddelbuettel/drat/languages","stargazers_url":"https://api.github.com/repos/eddelbuettel/drat/stargazers","contributors_url":"https://api.github.com/repos/eddelbuettel/drat/contributors","subscribers_url":"https://api.github.com/repos/eddelbuettel/drat/subscribers","subscription_url":"https://api.github.com/repos/eddelbuettel/drat/subscription","commits_url":"https://api.github.com/repos/eddelbuettel/drat/commits{/sha}","git_commits_url":"https://api.github.com/repos/eddelbuettel/drat/git/commits{/sha}","comments_url":"https://api.github.com/repos/eddelbuettel/drat/comments{/number}","issue_comment_url":"https://api.github.com/repos/eddelbuettel/drat/issues/comments{/number}","contents_url":"https://api.github.com/repos/eddelbuettel/drat/contents/{+path}","compare_url":"https://api.github.com/repos/eddelbuettel/drat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eddelbuettel/drat/merges","archive_url":"https://api.github.com/repos/eddelbuettel/drat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eddelbuettel/drat/downloads","issues_url":"https://api.github.com/repos/eddelbuettel/drat/issues{/number}","pulls_url":"https://api.github.com/repos/eddelbuettel/drat/pulls{/number}","milestones_url":"https://api.github.com/repos/eddelbuettel/drat/milestones{/number}","notifications_url":"https://api.github.com/repos/eddelbuettel/drat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eddelbuettel/drat/labels{/name}","releases_url":"https://api.github.com/repos/eddelbuettel/drat/releases{/id}","created_at":"2015-02-01T20:32:00Z","updated_at":"2015-03-16T13:14:07Z","pushed_at":"2015-03-22T03:27:20Z","git_url":"git://github.com/eddelbuettel/drat.git","ssh_url":"git@github.com:eddelbuettel/drat.git","clone_url":"https://github.com/eddelbuettel/drat.git","svn_url":"https://github.com/eddelbuettel/drat","homepage":null,"size":431,"stargazers_count":11,"watchers_count":11,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eddelbuettel/drat/pulls/11"},"html":{"href":"https://github.com/eddelbuettel/drat/pull/11"},"issue":{"href":"https://api.github.com/repos/eddelbuettel/drat/issues/11"},"comments":{"href":"https://api.github.com/repos/eddelbuettel/drat/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/eddelbuettel/drat/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/eddelbuettel/drat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eddelbuettel/drat/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/eddelbuettel/drat/statuses/4dda906450da1e2d198f5a1b180db0c0eda28e24"}}}}