{"action":"closed","number":184,"pull_request":{"url":"https://api.github.com/repos/rstudio/packrat/pulls/184","id":27981607,"html_url":"https://github.com/rstudio/packrat/pull/184","diff_url":"https://github.com/rstudio/packrat/pull/184.diff","patch_url":"https://github.com/rstudio/packrat/pull/184.patch","issue_url":"https://api.github.com/repos/rstudio/packrat/issues/184","number":184,"state":"closed","locked":false,"title":"ensure working directory set to project directory on restart","user":{"login":"kevinushey","id":1976582,"avatar_url":"https://avatars.githubusercontent.com/u/1976582?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinushey","html_url":"https://github.com/kevinushey","followers_url":"https://api.github.com/users/kevinushey/followers","following_url":"https://api.github.com/users/kevinushey/following{/other_user}","gists_url":"https://api.github.com/users/kevinushey/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinushey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinushey/subscriptions","organizations_url":"https://api.github.com/users/kevinushey/orgs","repos_url":"https://api.github.com/users/kevinushey/repos","events_url":"https://api.github.com/users/kevinushey/events{/privacy}","received_events_url":"https://api.github.com/users/kevinushey/received_events","type":"User","site_admin":false},"body":"This fixes #183 by ensuring that the working directory is set to the project directory when sourcing the `packrat/init.R` file, and then restoring it after completing initialization.","created_at":"2015-01-24T20:15:36Z","updated_at":"2015-01-25T11:28:33Z","closed_at":"2015-01-25T11:28:33Z","merged_at":"2015-01-25T11:28:33Z","merge_commit_sha":"c15e57491c1780f57f7b51869af95ff6eb70f9fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rstudio/packrat/pulls/184/commits","review_comments_url":"https://api.github.com/repos/rstudio/packrat/pulls/184/comments","review_comment_url":"https://api.github.com/repos/rstudio/packrat/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rstudio/packrat/issues/184/comments","statuses_url":"https://api.github.com/repos/rstudio/packrat/statuses/11de56275e1a364fcd49fdc04457a807f53ffaa7","head":{"label":"rstudio:feature/r-session-restart-different-dir","ref":"feature/r-session-restart-different-dir","sha":"11de56275e1a364fcd49fdc04457a807f53ffaa7","user":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","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":13426098,"name":"packrat","full_name":"rstudio/packrat","owner":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","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},"private":false,"html_url":"https://github.com/rstudio/packrat","description":"","fork":false,"url":"https://api.github.com/repos/rstudio/packrat","forks_url":"https://api.github.com/repos/rstudio/packrat/forks","keys_url":"https://api.github.com/repos/rstudio/packrat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rstudio/packrat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rstudio/packrat/teams","hooks_url":"https://api.github.com/repos/rstudio/packrat/hooks","issue_events_url":"https://api.github.com/repos/rstudio/packrat/issues/events{/number}","events_url":"https://api.github.com/repos/rstudio/packrat/events","assignees_url":"https://api.github.com/repos/rstudio/packrat/assignees{/user}","branches_url":"https://api.github.com/repos/rstudio/packrat/branches{/branch}","tags_url":"https://api.github.com/repos/rstudio/packrat/tags","blobs_url":"https://api.github.com/repos/rstudio/packrat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rstudio/packrat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rstudio/packrat/git/refs{/sha}","trees_url":"https://api.github.com/repos/rstudio/packrat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rstudio/packrat/statuses/{sha}","languages_url":"https://api.github.com/repos/rstudio/packrat/languages","stargazers_url":"https://api.github.com/repos/rstudio/packrat/stargazers","contributors_url":"https://api.github.com/repos/rstudio/packrat/contributors","subscribers_url":"https://api.github.com/repos/rstudio/packrat/subscribers","subscription_url":"https://api.github.com/repos/rstudio/packrat/subscription","commits_url":"https://api.github.com/repos/rstudio/packrat/commits{/sha}","git_commits_url":"https://api.github.com/repos/rstudio/packrat/git/commits{/sha}","comments_url":"https://api.github.com/repos/rstudio/packrat/comments{/number}","issue_comment_url":"https://api.github.com/repos/rstudio/packrat/issues/comments/{number}","contents_url":"https://api.github.com/repos/rstudio/packrat/contents/{+path}","compare_url":"https://api.github.com/repos/rstudio/packrat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rstudio/packrat/merges","archive_url":"https://api.github.com/repos/rstudio/packrat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rstudio/packrat/downloads","issues_url":"https://api.github.com/repos/rstudio/packrat/issues{/number}","pulls_url":"https://api.github.com/repos/rstudio/packrat/pulls{/number}","milestones_url":"https://api.github.com/repos/rstudio/packrat/milestones{/number}","notifications_url":"https://api.github.com/repos/rstudio/packrat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rstudio/packrat/labels{/name}","releases_url":"https://api.github.com/repos/rstudio/packrat/releases{/id}","created_at":"2013-10-08T21:29:27Z","updated_at":"2015-01-23T21:15:13Z","pushed_at":"2015-01-25T11:28:33Z","git_url":"git://github.com/rstudio/packrat.git","ssh_url":"git@github.com:rstudio/packrat.git","clone_url":"https://github.com/rstudio/packrat.git","svn_url":"https://github.com/rstudio/packrat","homepage":null,"size":13599,"stargazers_count":97,"watchers_count":97,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":35,"forks":22,"open_issues":35,"watchers":97,"default_branch":"master"}},"base":{"label":"rstudio:master","ref":"master","sha":"2b940e51413da6ac3c65795661a3367a90c1db33","user":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","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":13426098,"name":"packrat","full_name":"rstudio/packrat","owner":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","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},"private":false,"html_url":"https://github.com/rstudio/packrat","description":"","fork":false,"url":"https://api.github.com/repos/rstudio/packrat","forks_url":"https://api.github.com/repos/rstudio/packrat/forks","keys_url":"https://api.github.com/repos/rstudio/packrat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rstudio/packrat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rstudio/packrat/teams","hooks_url":"https://api.github.com/repos/rstudio/packrat/hooks","issue_events_url":"https://api.github.com/repos/rstudio/packrat/issues/events{/number}","events_url":"https://api.github.com/repos/rstudio/packrat/events","assignees_url":"https://api.github.com/repos/rstudio/packrat/assignees{/user}","branches_url":"https://api.github.com/repos/rstudio/packrat/branches{/branch}","tags_url":"https://api.github.com/repos/rstudio/packrat/tags","blobs_url":"https://api.github.com/repos/rstudio/packrat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rstudio/packrat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rstudio/packrat/git/refs{/sha}","trees_url":"https://api.github.com/repos/rstudio/packrat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rstudio/packrat/statuses/{sha}","languages_url":"https://api.github.com/repos/rstudio/packrat/languages","stargazers_url":"https://api.github.com/repos/rstudio/packrat/stargazers","contributors_url":"https://api.github.com/repos/rstudio/packrat/contributors","subscribers_url":"https://api.github.com/repos/rstudio/packrat/subscribers","subscription_url":"https://api.github.com/repos/rstudio/packrat/subscription","commits_url":"https://api.github.com/repos/rstudio/packrat/commits{/sha}","git_commits_url":"https://api.github.com/repos/rstudio/packrat/git/commits{/sha}","comments_url":"https://api.github.com/repos/rstudio/packrat/comments{/number}","issue_comment_url":"https://api.github.com/repos/rstudio/packrat/issues/comments/{number}","contents_url":"https://api.github.com/repos/rstudio/packrat/contents/{+path}","compare_url":"https://api.github.com/repos/rstudio/packrat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rstudio/packrat/merges","archive_url":"https://api.github.com/repos/rstudio/packrat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rstudio/packrat/downloads","issues_url":"https://api.github.com/repos/rstudio/packrat/issues{/number}","pulls_url":"https://api.github.com/repos/rstudio/packrat/pulls{/number}","milestones_url":"https://api.github.com/repos/rstudio/packrat/milestones{/number}","notifications_url":"https://api.github.com/repos/rstudio/packrat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rstudio/packrat/labels{/name}","releases_url":"https://api.github.com/repos/rstudio/packrat/releases{/id}","created_at":"2013-10-08T21:29:27Z","updated_at":"2015-01-23T21:15:13Z","pushed_at":"2015-01-25T11:28:33Z","git_url":"git://github.com/rstudio/packrat.git","ssh_url":"git@github.com:rstudio/packrat.git","clone_url":"https://github.com/rstudio/packrat.git","svn_url":"https://github.com/rstudio/packrat","homepage":null,"size":13599,"stargazers_count":97,"watchers_count":97,"language":"R","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":22,"mirror_url":null,"open_issues_count":35,"forks":22,"open_issues":35,"watchers":97,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rstudio/packrat/pulls/184"},"html":{"href":"https://github.com/rstudio/packrat/pull/184"},"issue":{"href":"https://api.github.com/repos/rstudio/packrat/issues/184"},"comments":{"href":"https://api.github.com/repos/rstudio/packrat/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/rstudio/packrat/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/rstudio/packrat/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rstudio/packrat/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/rstudio/packrat/statuses/11de56275e1a364fcd49fdc04457a807f53ffaa7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jjallaire","id":104391,"avatar_url":"https://avatars.githubusercontent.com/u/104391?v=3","gravatar_id":"","url":"https://api.github.com/users/jjallaire","html_url":"https://github.com/jjallaire","followers_url":"https://api.github.com/users/jjallaire/followers","following_url":"https://api.github.com/users/jjallaire/following{/other_user}","gists_url":"https://api.github.com/users/jjallaire/gists{/gist_id}","starred_url":"https://api.github.com/users/jjallaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jjallaire/subscriptions","organizations_url":"https://api.github.com/users/jjallaire/orgs","repos_url":"https://api.github.com/users/jjallaire/repos","events_url":"https://api.github.com/users/jjallaire/events{/privacy}","received_events_url":"https://api.github.com/users/jjallaire/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":3,"changed_files":3}}