Skip to content

Commit

Permalink
Merge pull request #608 from jhudsl/swirlactivity
Browse files Browse the repository at this point in the history
Convert DataQuest activity to a swirl lesson for Homework 1
  • Loading branch information
avahoffman authored Jun 25, 2024
2 parents 2da1a91 + 2863d02 commit eddcd4b
Show file tree
Hide file tree
Showing 24 changed files with 343 additions and 17 deletions.
4 changes: 2 additions & 2 deletions docs/_schedule_table.Rmd
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
| **Day** | **Module** | **Slides** | **Code** | **Resource** | **Cheatsheets/Guides** |
| :------------------------------------: | :-------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: |
| [Day 0](docs/module_details/day0.html) | Homework 1 | | [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r) | | |
| [Day 0](docs/module_details/day0.html) | Homework 1 | | [HTML](modules/HW/homework1.html) | | |
| | | | | | |
| [Day 1](docs/module_details/day1.html) | Intro | [HTML](modules/Intro/Intro.html), [PDF](modules/Intro/Intro.pdf) | [Rmd](modules/Intro/Intro.Rmd) | | [Day 1 Cheatsheet](modules/cheatsheets/Day-1.pdf) |
| | RStudio | [HTML](modules/RStudio/RStudio.html), [PDF](modules/RStudio/RStudio.pdf) | [Rmd](modules/RStudio/RStudio.Rmd) | [Lab](modules/RStudio/lab/RStudio_Lab.Rmd), [Key](modules/RStudio/lab/RStudio_Lab_Key.Rmd), [Key HTML](modules/RStudio/lab/RStudio_Lab_Key.html) | |
| | Basic R | [HTML](modules/Basic_R/Basic_R.html), [PDF](modules/Basic_R/Basic_R.pdf) | [Rmd](modules/Basic_R/Basic_R.Rmd) | [Lab](modules/Basic_R/lab/Basic_R_Lab.Rmd), [Key](modules/Basic_R/lab/Basic_R_Lab_Key.Rmd), [Key HTML](modules/Basic_R/lab/Basic_R_Lab_Key.html) | |
| | | | | | |
| [Day 2](docs/module_details/day2.html) | Basic R (cont.) | [HTML](modules/Basic_R/Basic_R.html), [PDF](modules/Basic_R/Basic_R.pdf) | [Rmd](modules/Basic_R/Basic_R.Rmd) | [Lab](modules/Basic_R/lab/Basic_R_Lab.Rmd), [Key](modules/Basic_R/lab/Basic_R_Lab_Key.Rmd), [Key HTML](modules/Basic_R/lab/Basic_R_Lab_Key.html) | [Day 2 Cheatsheet](modules/cheatsheets/Day-2.pdf) |
| | Reproducibility | [HTML](modules/Reproducibility/Reproducibility.html), [PDF](modules/Reproducibility/Reproducibility.pdf) | [Rmd](modules/Reproducibility/Reproducibility.Rmd) | [Lab](modules/Reproducibility/lab/Reproducibility_Lab.Rmd), [Key](modules/Reproducibility/lab/Reproducibility_Lab_Key.Rmd), [Key HTML](modules/Reproducibility/lab/Reproducibility_Lab_Key.html) | [Good scientific coding practices](resources/good-scientific-coding-practices.pdf) |
| | Reproducibility | [HTML](modules/Reproducibility/Reproducibility.html), [PDF](modules/Reproducibility/Reproducibility.pdf) | [Rmd](modules/Reproducibility/Reproducibility.Rmd) | [Lab](modules/Reproducibility/lab/Reproducibility_Lab.Rmd), [Key](modules/Reproducibility/lab/Reproducibility_Lab_Key.Rmd), [Key HTML](modules/Reproducibility/lab/Reproducibility_Lab_Key.html) | [Good scientific coding practices](resources/good-scientific-coding-practices.pdf) |
| | Data Input | [HTML](modules/Data_Input/Data_Input.html), [PDF](modules/Data_Input/Data_Input.pdf) | [Rmd](modules/Data_Input/Data_Input.Rmd) | [Lab](modules/Data_Input/lab/Data_Input_Lab.Rmd), [Key](modules/Data_Input/lab/Data_Input_Lab_Key.Rmd), [Key HTML](modules/Data_Input/lab/Data_Input_Lab_Key.html) | [Debugging tips guide](resources/debugging_guide.pdf) |
| | | | | | |
| [Day 3](docs/module_details/day3.html) | Subsetting Data in R | [HTML](modules/Subsetting_Data_in_R/Subsetting_Data_in_R.html), [PDF](modules/Subsetting_Data_in_R/Subsetting_Data_in_R.pdf) | [Rmd](modules/Subsetting_Data_in_R/Subsetting_Data_in_R.Rmd) | [Lab](modules/Subsetting_Data_in_R/lab/Subsetting_Data_in_R_Lab.Rmd), [Key](modules/Subsetting_Data_in_R/lab/Subsetting_Data_in_R_Lab_Key.Rmd), [Key HTML](modules/Subsetting_Data_in_R/lab/Subsetting_Data_in_R_Lab_Key.html) | [Day 3 Cheatsheet](modules/cheatsheets/Day-3.pdf) |
Expand Down
Binary file added docs/images/course_installed_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/install_swirl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/launch_swirl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/select_swc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/swirl_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/module_details/day0.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ You should see some messages in the console, ending with `* DONE (jhur)` if the

**(Due `r config::get("final_due_date")` - but we strongly suggest you complete it before the course starts)**:

- Complete the *FREE* lessons for Introduction to R on Dataquest.
- Complete Homework 1

- Upload a screenshot of the completion page to the Drop Box link below.
- Upload a screenshot of the final question to the Drop Box link below.

## Homework

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

## Drop Boxes

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEYS**: [Best times for Office Hours and first impressions feedback](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)


## Drop Boxes
Expand Down
3 changes: 1 addition & 2 deletions docs/module_details/day2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 2 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)

`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

## Drop Boxes

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day3.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 3 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day4.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 4 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day5.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 5 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day6.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 6 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day7.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 7 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day8.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 8 check-in](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion docs/module_details/day9.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pander::pandoc.table(

`r emo::ji("rotating_light")` **SURVEY**: [Day 9 check-in and final thoughts](`r config::get("courseplus_surveys")`)

`r emo::ji("pencil")` **HOMEWORK 1**: [Dataquest](https://app.dataquest.io/login?target-url=%2Fm%2F499%2Fintroduction-to-programming-in-r)
`r emo::ji("pencil")` **HOMEWORK 1**: [Questions (HTML)](../../modules/HW/homework1.html)

`r emo::ji("pencil")` **HOMEWORK 2**: [Questions (Rmd)](../../modules/HW/homework2.Rmd), [Questions (HTML)](../../modules/HW/homework2.html)

Expand Down
2 changes: 1 addition & 1 deletion materials_schedule.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ output:
html_document
---

`r config::get("holiday")` There is an assignment due before class to [install software](modules/Setup/Setup.html) and we recommend completing HW 1 (uploading a screenshot showing that you finished the Dataquest module indicated below) before class, but all other assignments will be due `r config::get("final_due_date")`. You are welcome to turn assignments in earlier if you wish.
`r config::get("holiday")` There is an assignment due before class to [install software](modules/Setup/Setup.html) and we recommend completing HW 1 (uploading a screenshot showing that you finished the Swirl module indicated below) before class, but all other assignments will be due `r config::get("final_due_date")`. You are welcome to turn assignments in earlier if you wish.

<br>

Expand Down
Binary file added modules/HW/Intro_to_R_Course.swc
Binary file not shown.
12 changes: 12 additions & 0 deletions modules/HW/Intro_to_R_Course/Intro_Lesson/customTests.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Put custom tests in this file.

# Uncommenting the following line of code will disable
# auto-detection of new variables and thus prevent swirl from
# executing every command twice, which can slow things down.

# AUTO_DETECT_NEWVAR <- FALSE

# However, this means that you should detect user-created
# variables when appropriate. The answer test, creates_new_var()
# can be used for for the purpose, but it also re-evaluates the
# expression which the user entered, so care must be taken.
Empty file.
4 changes: 4 additions & 0 deletions modules/HW/Intro_to_R_Course/Intro_Lesson/initLesson.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
Loading

0 comments on commit eddcd4b

Please sign in to comment.