Skip to content

Commit 485e692

Browse files
committed
clean up and updates
1 parent e44e489 commit 485e692

File tree

6 files changed

+6634
-1558
lines changed

6 files changed

+6634
-1558
lines changed

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
r4ds.tutorials.Rproj
77

8-
# According to chatGPT, this .gitignore line will match any
9-
# subdirectory under inst/tutorials/ except for data, images or those
8+
# According to chatGPT, this .gitignore line will match any
9+
# subdirectory under inst/tutorials/ except for data, images or those
1010
# ending in .Rmd.
1111

1212
inst/tutorials/[^/]*/(?!(data|images|.*Rmd))
@@ -17,7 +17,7 @@ inst/tutorials/*/*html
1717

1818
inst/tutorials/*/*_files/
1919

20-
# Not sure why this is needed, but something in the above was preventing git
20+
# Not sure why this is needed, but something in the above was preventing git
2121
# from noticing these files, so I needed to explicitly include them. We
2222
# should go back and fix this properly.
2323

@@ -33,3 +33,5 @@ inst/tutorials/*/tutorial_cache
3333

3434

3535

36+
37+
/.quarto/

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: r4ds.tutorials
22
Title: Tutorials for "R for Data Science"
3-
Version: 0.3.1.9000
3+
Version: 0.3.1.9001
44
Authors@R:
55
person(given = "David",
66
family = "Kane",

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# r4ds.tutorials (development version)
22

3+
* Update Introduction tutorial.
4+
35
# r4ds.tutorials 0.3.1
46

57
* Clean up tutorials. Remove junk files.

README.Rmd

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ The promise we make to instructors is that, if they assign our tutorial for Chap
3131

3232
Our causal claim is that, if an instructor were to randomly assign half the class to do these tutorials and half to simply complete the reading, the half completing the tutorials would perform much better for the rest of the course.
3333

34-
Note that most of the tutorials follow the associated chapters from [*R for Data Science (2e)*](https://r4ds.hadley.nz/). This is *not* true, however, for these tutorials: Introduction, RStudio and Code, RStudio and Github, Terminal, and Quarto. In those tutorials, we cover material which we feel belongs in any introductory data science course.
34+
## Extra material
35+
36+
Note that most of the tutorials follow the associated chapters from [*R for Data Science (2e)*](https://r4ds.hadley.nz/). This is *not* true, however, for several other tutorials like Introduction, RStudio and Code, Quarto Websites Introduction, Terminal, et cetera. In those tutorials, we cover material which we feel belongs in any introductory data science course which uses RStudio.
37+
38+
However, the future of data science belongs to [Positron](https://positron.posit.co/), so we recommend that teachers use Positron rather than RStudio. In that case, you should assign the tutorials from the **[positron.tutorials](https://ppbds.github.io/positron.tutorials/)** package in place of the similar tutorials in **r4ds.tutorials**. We no longer actively maintain these extra RStudio tutorials in this package. In the next version, we will delete them.
3539

3640
## Installation
3741

@@ -51,7 +55,18 @@ If R offers you the option to update some packages, you should do so. For packag
5155

5256
Then **restart your R session** or **restart RStudio**.
5357

54-
## Accessing tutorials
58+
59+
## Positron users
60+
61+
Positron user should be aware of two things. First, tutorials in Positron must be run "by hand," using the `run_tutorial()` function from the **learnr** package. Example:
62+
63+
````
64+
learnr::run_tutorial(name = "00-introduction", package = "r4ds.tutorials")
65+
````
66+
67+
Second, many of the **r4ds.tutorials** were written specifically for RStudio. Fortunately, the **[positron.tutorials](https://ppbds.github.io/positron.tutorials/)** package includes versions of those tutorials written for Positron.
68+
69+
## RStudio users
5570

5671
In order to access the tutorials, start by loading the package.
5772

@@ -74,4 +89,4 @@ Because tutorials within the Tutorial pane are sorted in alphabetical order by t
7489

7590
In order to expand the window, you can drag and enlarge the tutorial pane inside RStudio. In order to open a pop-up window, click the "Show in New Window" icon next to the home icon.
7691

77-
You may notice that the Jobs tab in the lower left will create output as the tutorial is starting up. This is because RStudio is running the code to create the tutorial. If you accidentally clicked "Start Tutorial" and would like to stop the job from running, you can click the back arrow in the Jobs tab, and then press the red stop sign icon. Your work will be saved between RStudio sessions, meaning that you can complete a tutorial in multiple sittings. Once you have completed a tutorial, follow the instructions on the tutorial `Submit` page and, if you're a student, submit your answers as instructed.
92+
You may notice that the Jobs tab in the lower left will create output as the tutorial is starting up. This is because RStudio is running the code to create the tutorial. If you accidentally clicked "Start Tutorial" and would like to stop the job from running, you can click the back arrow in the Jobs tab, and then press the red stop sign icon. Your work will be saved between RStudio sessions, meaning that you can complete a tutorial in multiple sittings. Once you have completed a tutorial, follow the instructions on the tutorial `Submit` page and, if you're a student, submit your answers as instructed.

0 commit comments

Comments
 (0)