{"action":"created","issue":{"url":"https://api.github.com/repos/IRkernel/IRkernel/issues/118","labels_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/118/comments","events_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/118/events","html_url":"https://github.com/IRkernel/IRkernel/issues/118","id":72170326,"number":118,"title":"Plotting errors","user":{"login":"abielr","id":168236,"avatar_url":"https://avatars.githubusercontent.com/u/168236?v=3","gravatar_id":"","url":"https://api.github.com/users/abielr","html_url":"https://github.com/abielr","followers_url":"https://api.github.com/users/abielr/followers","following_url":"https://api.github.com/users/abielr/following{/other_user}","gists_url":"https://api.github.com/users/abielr/gists{/gist_id}","starred_url":"https://api.github.com/users/abielr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abielr/subscriptions","organizations_url":"https://api.github.com/users/abielr/orgs","repos_url":"https://api.github.com/users/abielr/repos","events_url":"https://api.github.com/users/abielr/events{/privacy}","received_events_url":"https://api.github.com/users/abielr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IRkernel/IRkernel/labels/plotting","name":"plotting","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-30T13:59:41Z","updated_at":"2015-04-30T22:40:12Z","closed_at":null,"body":"```\r\nlibrary(ggplot2)\r\nplot(1:10)\r\nqplot(1:10)\r\n```\r\nIf either of the charting commands are run alone in their own cell then they correctly yield a single chart. However, when run in one cell, it yields the first chart, the second chart, and then another copy of the first chart.\r\n\r\nIn addition, the `plot()` command shows a `Error in replayPlot(obj): invalid graphics state` warning, while the `qplot()` command yields a `Error in if (args[[1]]$name == \"C_title\" && !is.null(args[[2]])) {: missing value where TRUE/FALSE needed` warning."},"comment":{"url":"https://api.github.com/repos/IRkernel/IRkernel/issues/comments/97991146","html_url":"https://github.com/IRkernel/IRkernel/issues/118#issuecomment-97991146","issue_url":"https://api.github.com/repos/IRkernel/IRkernel/issues/118","id":97991146,"user":{"login":"yhtgrace","id":1896181,"avatar_url":"https://avatars.githubusercontent.com/u/1896181?v=3","gravatar_id":"","url":"https://api.github.com/users/yhtgrace","html_url":"https://github.com/yhtgrace","followers_url":"https://api.github.com/users/yhtgrace/followers","following_url":"https://api.github.com/users/yhtgrace/following{/other_user}","gists_url":"https://api.github.com/users/yhtgrace/gists{/gist_id}","starred_url":"https://api.github.com/users/yhtgrace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yhtgrace/subscriptions","organizations_url":"https://api.github.com/users/yhtgrace/orgs","repos_url":"https://api.github.com/users/yhtgrace/repos","events_url":"https://api.github.com/users/yhtgrace/events{/privacy}","received_events_url":"https://api.github.com/users/yhtgrace/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T22:40:12Z","updated_at":"2015-04-30T22:40:12Z","body":"`Error in if (args[[1]]$name == \"C_title\" && !is.null(args[[2]])) {: missing value where TRUE/FALSE needed` is from `repr`'s `repr_text.recorded_plot` for getting the plot title. As a workaround, I've been checking if `(args[[1]]$name == \"C_title\" && !is.null(args[[2]]))` returns `NULL`.  "}}