{"id":327,"date":"2017-12-27T00:06:55","date_gmt":"2017-12-27T00:06:55","guid":{"rendered":"http:\/\/science.ekqvist.fi\/blogi\/?p=327"},"modified":"2017-12-27T00:06:55","modified_gmt":"2017-12-27T00:06:55","slug":"r-tips-part1","status":"publish","type":"post","link":"https:\/\/science.ekqvist.fi\/blogi\/github\/r-tips-part1\/","title":{"rendered":"R tips part1"},"content":{"rendered":"<p>GitHub repository (source: <a href=\"https:\/\/rstudio.github.io\/shiny\/tutorial\/#deployment-local\" target=\"_blank\" rel=\"noopener\">https:\/\/rstudio.github.io\/shiny\/tutorial\/#deployment-local<\/a>)<br \/>\nIf your project is stored in a git repository on GitHub, then others can download and run your app directly. An example repository is at https:\/\/github.com\/rstudio\/shiny_example. The following command will download and run the application:<\/p>\n<p><code>shiny::runGitHub('shiny_example', 'rstudio')<\/code><br \/>\nIn this example, the GitHub account is &#8216;rstudio&#8217; and the repository is &#8216;shiny_example&#8217;; you will need to replace them with your account and repository name.<\/p>\n<p>Pros<br \/>\nSource code is easily visible by recipient (if desired)<br \/>\nEasy to run (for R users)<br \/>\nVery easy to update if you already use GitHub for your project<br \/>\nGit-savvy users can clone and fork your repository<br \/>\nCons<br \/>\nDeveloper must know how to use git and GitHub<br \/>\nCode is hosted by a third-party server<\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub repository (source: https:\/\/rstudio.github.io\/shiny\/tutorial\/#deployment-local) If your project is stored in a git repository on GitHub, then others can download and run your app directly. An example repository is at https:\/\/github.com\/rstudio\/shiny_example. The following command will download and run the application: shiny::runGitHub(&#8216;shiny_example&#8217;, &#8216;rstudio&#8217;) In this example, the GitHub account is &#8216;rstudio&#8217; and the repository is &#8216;shiny_example&#8217;; you <a class=\"read-more-excerpt\" href=\"https:\/\/science.ekqvist.fi\/blogi\/github\/r-tips-part1\/\">[&#8230;] Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[61],"tags":[],"_links":{"self":[{"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/posts\/327"}],"collection":[{"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":1,"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"predecessor-version":[{"id":328,"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/posts\/327\/revisions\/328"}],"wp:attachment":[{"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/science.ekqvist.fi\/blogi\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}