@@ -38,15 +38,8 @@ once per computer (i.e. not every time you create a new workflowr project).
3838wflow_git_config(user.name = "Your Name", user.email = "email@domain")
3939```
4040
41- You can run ` wflow_git_config() ` again with no arguments to confirm that Git is
42- configured properly.
43-
44- ``` {r git-config-confirm}
45- wflow_git_config()
46- ```
47-
4841Now that Git is configured, you can start your workflowr project using
49- ` wflow_start() ` . It is more common to start a workflowr proejct in a brand new
42+ ` wflow_start() ` . It is more common to start a workflowr project in a brand new
5043directory, but the workflowr setup can also be added to an existing analysis. To
5144limit the tutorial to one RStudio Cloud project, you will create the workflowr
5245project in the same directory where you've already been working on the Spotify
@@ -95,17 +88,22 @@ wflow_build()
9588
9689Next add the Spotify analysis files to the workflowr project. You can do this
9790via the files Pane or the running the commands below in the R console. The Rmd
98- file goes to ` analysis/ ` and the data file to ` data/ ` .
91+ file goes to ` analysis/ ` and the data file to ` data/ ` . Also remove
92+ ` spotify.html ` since it will be re-built later as part of the workflowr project.
9993
10094``` {r move-files}
10195file.rename("spotify.Rmd", "analysis/spotify.Rmd")
10296file.rename("spotify.csv", "data/spotify.csv")
97+ file.remove("spotify.html")
10398```
10499
105- And since ` spotify.csv ` is no longer in the same directory as ` spotify.Rmd ` ,
100+ After moving the Rmd file, RStudio will prompt you to close ` spotify.Rmd ` .
101+ Accept and re-open it by navigating to ` analysis/ ` in the Files pane.
102+
103+ Since ` spotify.csv ` is no longer in the same directory as ` spotify.Rmd ` ,
106104you need to update the path passed to ` read.csv() ` . By default, all Rmd files
107105in a workflowr project are executed in the root of the project, so the updated
108- path is ` data/spotify.csv ` . Open ` analysis/spotify.Rmd ` and change the import
106+ path is ` data/spotify.csv ` . In ` analysis/spotify.Rmd ` change the import
109107line to the line below:
110108
111109```
@@ -191,14 +189,9 @@ username:
191189wflow_git_remote("origin", user = "<github-username>", repo = "workflowr-spotify")
192190```
193191
194- Run ` wflow_git_remote() ` a second time, this time with no arguments, to have it
195- list the available remote repositories. The URL will look something like
192+ The URL will look something like
196193` https://github.com/<github-username>/workflowr-spotify.git ` .
197194
198- ``` {r git-remote-confirm}
199- wflow_git_remote()
200- ```
201-
202195Note that "origin" is an alias for referring to that long URL. The name "origin"
203196is a convention, and could be anything you wanted. The main benefit of following
204197the convention is that it will make it easier to follow online
@@ -220,7 +213,9 @@ updates, scroll back down to the same section to retreive the URL. It will look
220213like ` https://<github-username>.github.io/workflowr-spotify/ ` . Click on it to
221214view your workflowr website. If it displays a "404 Not Found" error, manually
222215add ` index.html ` to the URL in the web browser (Long-term you don't have to do
223- this. It only applies when GitHub Pages is first launching your website).
216+ this. It only applies when GitHub Pages is first launching your website). If
217+ that trick doesn't work, you'll have to be patient and wait a few minutes for
218+ the site to be available.
224219
225220Now you have a website that containing your reproducible results that you can
226221share with your colleagues! And each time you make changes and push them to
0 commit comments