{"id":119,"date":"2016-09-16T04:03:21","date_gmt":"2016-09-16T04:03:21","guid":{"rendered":"https:\/\/leedavies.dev\/?p=119"},"modified":"2016-09-16T04:03:21","modified_gmt":"2016-09-16T04:03:21","slug":"error-in-editor-using-swirl-in-r-studio","status":"publish","type":"post","link":"https:\/\/leedavies.dev\/index.php\/2016\/09\/16\/error-in-editor-using-swirl-in-r-studio\/","title":{"rendered":"&#8220;Error in editor&#8221; using swirl in R Studio."},"content":{"rendered":"<p>When R Studio is running the swirl package and the swirl tutorial attempts to open an editor containing a code snippet, the following error is displayed and swirl will exit.<\/p>\n<p><code>Error in editor(file = file, title = title) :<br \/>\n  argument \"name\" is missing, with no default<\/code><br \/>\n| Leaving swirl now. Type swirl() to resume.<\/p>\n<p>Before you restart the swirl tutorial type the following command at the prompt.<\/p>\n<p><code>options(editor = \"internal\")<\/code><br \/>\nNow when you restart the tutorial the editor will be opened correctly.<\/p>\n<p>Note that if you re-set the R Session (or restart R Studio) you will need to re-run the options command.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When R Studio is running the swirl package and the swirl tutorial attempts to open an editor containing a code snippet, the following error is displayed and swirl will exit. Error in editor(file = file, title = title) : argument &#8220;name&#8221; is missing, with no default | Leaving swirl now. Type swirl() to resume. Before you restart the swirl tutorial type the following command at the prompt. options(editor = &#8220;internal&#8221;) Now when you restart the tutorial the editor will be&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/leedavies.dev\/index.php\/2016\/09\/16\/error-in-editor-using-swirl-in-r-studio\/\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":2,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/posts\/119\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leedavies.dev\/index.php\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}