- "contents": "\r\nUsing RStudio to manage version control got a lot easier with the version 2.x release of the usethis package. Therefore, this site now consists of links and tips.\r\nAfter usethis setup, take your reproducibility to the next level. Make your code citable by connecting your GitHub repo and your ORCHID (unique author ID) to the Zenodo archival repository. This way, every time you commit a milestone release, you can mint a new DOI. Then, put your repository into a binder.org container with the holepunch package.\r\nSetup\r\nTo get started, get a free GitHub.com account. Make sure you have the latest versions of R, RStudio, (Rtools if you’re Windows), and usethis. Then, you need to setup your RStudio configuration. Two key documents will help: Setup, and Managing Git(Hub) Credentials\r\nTips\r\nClone or fork from GitHub\r\nusethis::create_from_github(\"https://github.com/data-and-visualization/git-tutorial\")\r\nCreate the GitHub repo from local\r\nlibrary(usethis)\r\nuse_git() # initialize a git repo\r\nuse_git_ignore()\r\nuse_readme.Rmd()\r\nuse_ccby_license()\r\nuse_github() # Connect local repo to GitHub\r\nset-up git and manage GitHub credentials\r\n# Sign-in to your GitHub account\r\n# Read: https://usethis.r-lib.org/articles/articles/git-credentials.html\r\n# Read: https://usethis.r-lib.org/articles/articles/usethis-setup.html\r\nusethis::create_github_token()\r\ngitcreds::gitcreds_set()\r\ngh::gh_whoami()\r\nusethis::git_sitrep()\r\nusethis::use_git_config(user.name = \"Jane Doe\", user.email = \"jane@example.com\")\r\ngh::git_sitrep()\r\nPublish your code in a binder.org container\r\nUse the holepunch package\r\nlibrary(holepunch)\r\n\r\nwrite_compendium_description()\r\nwrite_dockerfile()\r\ngenerate_badge()\r\nbuild_binder()\r\n\r\nThe old documentation from this site can be found in the v.0.2019 release on GitHub.\r\n\r\n\r\n\r\n",
0 commit comments