{"action":"created","issue":{"url":"https://api.github.com/repos/aoles/EBImage/issues/3","repository_url":"https://api.github.com/repos/aoles/EBImage","labels_url":"https://api.github.com/repos/aoles/EBImage/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/aoles/EBImage/issues/3/comments","events_url":"https://api.github.com/repos/aoles/EBImage/issues/3/events","html_url":"https://github.com/aoles/EBImage/pull/3","id":136424381,"number":3,"title":"Reset user's parameters in displayRaster","user":{"login":"EricEdwardBryant","id":5834954,"avatar_url":"https://avatars.githubusercontent.com/u/5834954?v=3","gravatar_id":"","url":"https://api.github.com/users/EricEdwardBryant","html_url":"https://github.com/EricEdwardBryant","followers_url":"https://api.github.com/users/EricEdwardBryant/followers","following_url":"https://api.github.com/users/EricEdwardBryant/following{/other_user}","gists_url":"https://api.github.com/users/EricEdwardBryant/gists{/gist_id}","starred_url":"https://api.github.com/users/EricEdwardBryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EricEdwardBryant/subscriptions","organizations_url":"https://api.github.com/users/EricEdwardBryant/orgs","repos_url":"https://api.github.com/users/EricEdwardBryant/repos","events_url":"https://api.github.com/users/EricEdwardBryant/events{/privacy}","received_events_url":"https://api.github.com/users/EricEdwardBryant/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-25T15:41:02Z","updated_at":"2016-02-25T15:45:54Z","closed_at":"2016-02-25T15:45:54Z","pull_request":{"url":"https://api.github.com/repos/aoles/EBImage/pulls/3","html_url":"https://github.com/aoles/EBImage/pull/3","diff_url":"https://github.com/aoles/EBImage/pull/3.diff","patch_url":"https://github.com/aoles/EBImage/pull/3.patch"},"body":"displayRaster modifies the users graphical parameter settings with a call to `par`. This commit saves the users parameter settings and restores them on exit from displayRaster.\r\n\r\n```r\r\nlibrary(EBImage)\r\nf = system.file(\"images\", \"sample.png\", package=\"EBImage\")\r\nimg = readImage(f)\r\n\r\n# This plot should look the same before ...\r\nplot(1:10)\r\n\r\ndisplay(img, method = \"raster\")\r\n\r\n# ... and after displaying an image\r\nplot(1:10)\r\n```"},"comment":{"url":"https://api.github.com/repos/aoles/EBImage/issues/comments/188847975","html_url":"https://github.com/aoles/EBImage/pull/3#issuecomment-188847975","issue_url":"https://api.github.com/repos/aoles/EBImage/issues/3","id":188847975,"user":{"login":"aoles","id":6545356,"avatar_url":"https://avatars.githubusercontent.com/u/6545356?v=3","gravatar_id":"","url":"https://api.github.com/users/aoles","html_url":"https://github.com/aoles","followers_url":"https://api.github.com/users/aoles/followers","following_url":"https://api.github.com/users/aoles/following{/other_user}","gists_url":"https://api.github.com/users/aoles/gists{/gist_id}","starred_url":"https://api.github.com/users/aoles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoles/subscriptions","organizations_url":"https://api.github.com/users/aoles/orgs","repos_url":"https://api.github.com/users/aoles/repos","events_url":"https://api.github.com/users/aoles/events{/privacy}","received_events_url":"https://api.github.com/users/aoles/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T15:45:54Z","updated_at":"2016-02-25T15:45:54Z","body":"Cool, thanks!"}}