{"action":"closed","issue":{"url":"https://api.github.com/repos/jhollist/dadjoke/issues/1","repository_url":"https://api.github.com/repos/jhollist/dadjoke","labels_url":"https://api.github.com/repos/jhollist/dadjoke/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jhollist/dadjoke/issues/1/comments","events_url":"https://api.github.com/repos/jhollist/dadjoke/issues/1/events","html_url":"https://github.com/jhollist/dadjoke/issues/1","id":318309740,"number":1,"title":"Option to test internet connexion? ","user":{"login":"abichat","id":30300749,"avatar_url":"https://avatars2.githubusercontent.com/u/30300749?v=4","gravatar_id":"","url":"https://api.github.com/users/abichat","html_url":"https://github.com/abichat","followers_url":"https://api.github.com/users/abichat/followers","following_url":"https://api.github.com/users/abichat/following{/other_user}","gists_url":"https://api.github.com/users/abichat/gists{/gist_id}","starred_url":"https://api.github.com/users/abichat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abichat/subscriptions","organizations_url":"https://api.github.com/users/abichat/orgs","repos_url":"https://api.github.com/users/abichat/repos","events_url":"https://api.github.com/users/abichat/events{/privacy}","received_events_url":"https://api.github.com/users/abichat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-27T07:44:48Z","updated_at":"2018-04-27T13:26:55Z","closed_at":"2018-04-27T13:26:55Z","author_association":"NONE","body":"I have `dadjoke::groan()` in my .Rprofile and when I'm not connected to internet, I just don't have the joke but it's fine.\r\n\r\nHowever, when I compile a markdown file, it stops the execution... \r\n\r\n![](https://s14.postimg.cc/clw2s1gpd/Capture_d_e_cran_2018-04-27_a_09.31.10.png)\r\n\r\nMaybe add an option to test if internet connexion is available is a good idea?\r\n\r\n```\r\ntry(is.character(RCurl::getURL(\"icanhazdadjoke.com\"))) == TRUE\r\n```\r\n"}}
{"actor":{"display_login":"jhollist"}}