-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
72 lines (44 loc) · 4.21 KB
/
README.Rmd
File metadata and controls
72 lines (44 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
output: github_document
---
<!-- README is generated from README.Rmd, edit ONLY this file if needed. But, after you edit it, you NEED TO KNIT IT BY HAND in order to create the new README.md, which is the thing which is actually used. -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/README-",
out.width = "100%"
)
```
# Tutorials for *R for Data Science (2e)*
<!-- badges: start -->
[](https://github.com/NUstat/r4dsTutorialsNU/actions)
<!-- badges: end -->
## About this package
**r4dsTutorialsNU** provides tutorials for [*R for Data Science (2e)*](https://r4ds.hadley.nz/) by Hadley Wickham, Mine Çetinkaya-Rundel, and Garrett Grolemund. These tutorials are modifications of the *r4ds.tutorials* package developed by David Kane. Changes include grading the assignment and condensing and re-organizing select chapters.
The main audience for these tutorials is instructors teaching introductory data science and their students. Instructors want students to, for example, read Chapter 8 of [*R for Data Science (2e)*](https://r4ds.hadley.nz/) (or something similar), typing in the code at the R Console along the way. Sadly, students almost never do that. Indeed, many (most?) of them won't even read the assigned chapter.
The promise we make to instructors is that, if they assign our tutorial for Chapter 8, then students will type in at least 90% of the code examples from the chapter, and then run the code to see what happens. We also pull out some of the most important prose from the chapter and do everything we can to cajole/trick students into reading it. These [two](https://ppbds.github.io/tutorial.helpers/articles/instructions.html) [essays](https://ppbds.github.io/tutorial.helpers/articles/books.html) provide background information about our approach.
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.
## Installation
This package is not available on CRAN.
You can install the development version from [GitHub](https://github.com/) with:
``` r
remotes::install_github("NUstat/r4dsTutorialsNU")
```
If R offers you the option to update some packages, you should do so. For packages that need compilation, feel free to answer "no."
Then **restart your R session** or **restart RStudio**.
## Accessing tutorials
In order to access the tutorials, start by loading the package.
``` r
library(r4dsTutorialsNU)
```
You can access the tutorials via the Tutorial tab in the top right (Environment) pane in RStudio.
If either of the following is happening to you
<ul>
<li>Cannot find the Tutorial pane</li>
<li>Cannot find any r4ds tutorials</li>
</ul>
Then **remember to restart your R session** after installing the package.
Because tutorials within the Tutorial pane are sorted in alphabetical order by the name of the package, the **r4dsTutorialsNU** will be toward the bottom. **Warning**: There will usually be a bunch of **learnr** tutorials at the top of the Tutorial pane. Ignore those. They have nothing to do with this package. All tutorials from this package are labelled as **r4dsTutorialsNU**. If you don’t see any tutorials, try clicking the “Home” button – the little house symbol with the thin red roof in the upper right.
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.
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.