From 21312ba9e8eaed8334915361edd153c6046dda77 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Mon, 7 Jan 2019 20:17:44 -0800 Subject: [PATCH] Stop numbering files, Act Three --- _bookdown.yml | 11 ++++++----- ....Rmd => usage-existing-project-github-first.Rmd | 0 ...t.Rmd => usage-existing-project-github-last.Rmd | 0 usage-intro.Rmd | 14 ++++++++++++++ ...first.Rmd => usage-new-project-github-first.Rmd | 2 -- ...and-github.Rmd => usage-r-script-and-github.Rmd | 0 ...-rmd-and-github.Rmd => usage-rmd-and-github.Rmd | 0 7 files changed, 20 insertions(+), 7 deletions(-) rename 21_usage-existing-project-github-first.Rmd => usage-existing-project-github-first.Rmd (100%) rename 22_usage-existing-project-github-last.Rmd => usage-existing-project-github-last.Rmd (100%) create mode 100644 usage-intro.Rmd rename 20_usage-new-project-github-first.Rmd => usage-new-project-github-first.Rmd (99%) rename 31_workflow-first-use-r-script-and-github.Rmd => usage-r-script-and-github.Rmd (100%) rename 30_workflow-first-use-rmd-and-github.Rmd => usage-rmd-and-github.Rmd (100%) diff --git a/_bookdown.yml b/_bookdown.yml index 3e0eb480..1bb34f62 100644 --- a/_bookdown.yml +++ b/_bookdown.yml @@ -27,11 +27,12 @@ rmd_files: [ "connect-can-rstudio-use-git.Rmd", "connect-troubleshooting.Rmd", - "20_usage-new-project-github-first.Rmd", - "21_usage-existing-project-github-first.Rmd", - "22_usage-existing-project-github-last.Rmd", - "30_workflow-first-use-rmd-and-github.Rmd", - "31_workflow-first-use-r-script-and-github.Rmd", + "usage-intro.Rmd", + "usage-new-project-github-first.Rmd", + "usage-existing-project-github-first.Rmd", + "usage-existing-project-github-last.Rmd", + "usage-rmd-and-github.Rmd", + "usage-r-script-and-github.Rmd", "33_git-commands.Rmd", ## TODO: commit, diff diff --git a/21_usage-existing-project-github-first.Rmd b/usage-existing-project-github-first.Rmd similarity index 100% rename from 21_usage-existing-project-github-first.Rmd rename to usage-existing-project-github-first.Rmd diff --git a/22_usage-existing-project-github-last.Rmd b/usage-existing-project-github-last.Rmd similarity index 100% rename from 22_usage-existing-project-github-last.Rmd rename to usage-existing-project-github-last.Rmd diff --git a/usage-intro.Rmd b/usage-intro.Rmd new file mode 100644 index 00000000..60582896 --- /dev/null +++ b/usage-intro.Rmd @@ -0,0 +1,14 @@ +# (PART) Early GitHub Wins {-} + +# Get started with GitHub {#usage-intro .unnumbered} + +Now that we've verified your Git/GitHub/RStudio setup, we can demo the workflows you'll use to get your work onto GitHub: + + * [New project, GitHub first] is the easiest way to get a working project. + * [Existing project, GitHub first] is a deeply pragmatic way to get pre-existing work onto GitHub. + * [Existing project, GitHub last] is the more proper way to connect existing local work to a remote on GitHub, especially if there's already a Git history. + +This part concludes with two R-specific workflows that show off how well [R Markdown (the format)](https://rmarkdown.rstudio.com) and [rmarkdown (the package)](https://cran.r-project.org/package=rmarkdown) work with GitHub: + + * [Test drive R Markdown] + * [Render an R script] diff --git a/20_usage-new-project-github-first.Rmd b/usage-new-project-github-first.Rmd similarity index 99% rename from 20_usage-new-project-github-first.Rmd rename to usage-new-project-github-first.Rmd index d414a835..d9b95e65 100644 --- a/20_usage-new-project-github-first.Rmd +++ b/usage-new-project-github-first.Rmd @@ -1,5 +1,3 @@ -# (PART) Early GitHub Usage {-} - # New project, GitHub first {#new-github-first} We create a new Project, with the preferred "GitHub first, then RStudio" sequence. Why do we prefer this? Because this method of copying the Project from GitHub to your computer also sets up the local Git repository for immediate pulling and pushing. Under the hood, we are doing `git clone`. diff --git a/31_workflow-first-use-r-script-and-github.Rmd b/usage-r-script-and-github.Rmd similarity index 100% rename from 31_workflow-first-use-r-script-and-github.Rmd rename to usage-r-script-and-github.Rmd diff --git a/30_workflow-first-use-rmd-and-github.Rmd b/usage-rmd-and-github.Rmd similarity index 100% rename from 30_workflow-first-use-rmd-and-github.Rmd rename to usage-rmd-and-github.Rmd