From b8a0fecf15b8254390c1deae120c68be426d4395 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Wed, 13 Mar 2024 16:20:57 +0000 Subject: [PATCH] differences for PR #266 --- 00-introduction.md | 14 ++++++++++++-- md5sum.txt | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/00-introduction.md b/00-introduction.md index a905b9da..f0a92725 100644 --- a/00-introduction.md +++ b/00-introduction.md @@ -142,6 +142,16 @@ called an **RStudio Project**. An RStudio project allows you to more easily: - Restart work where you left off - Collaborate, especially if you are using version control such as [git](https://swcarpentry.github.io/git-novice/). +Using an RStudio project also has the key benefit of correctly setting your working directory when in an R session. +This is important because R will look for files in the working directory by default. +If you don't set your working directory, you may have to specify the full path (the location on your drive) to a +file every time you want to read or write it. Sometimes people will use `setwd()` to manually +set the working directory for a script, but this is not recommended because this approach requires the working directory to be +set every time you run your script, and can cause problems if you share your script with others or run it on a different machine. +RStudio project directories can be moved to a different location on the computer, or moved to a different computer, and they will +still work correctly because the working directory is set relative to the project directory (it sets the working directory as the directory with +the `.Rproj` file). + 1. To create a project, go to the File menu, and click New Project.... rstudio default session @@ -512,7 +522,7 @@ parentheses. - Chi-Squared test - Student t-test -- mixed linear model +- linear model ::::::::::::::: solution @@ -523,7 +533,7 @@ find: - Chi-Squared test: `stats::Chisquare` - Student t-test: `stats::t.test` -- mixed linear model: `stats::lm.glm` +- linear model: `stats::lm.glm` diff --git a/md5sum.txt b/md5sum.txt index 520bc30a..9d6496ae 100644 --- a/md5sum.txt +++ b/md5sum.txt @@ -3,7 +3,7 @@ "LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2024-03-12" "config.yaml" "b91cd97fa3b408bd1ac0a00e67ab3219" "site/built/config.yaml" "2024-03-12" "index.md" "7f9c30e6487338a0c3f8ecc4018873ab" "site/built/index.md" "2024-03-12" -"episodes/00-introduction.Rmd" "3856da53479d3f23d224bf559cb78eaa" "site/built/00-introduction.md" "2024-03-13" +"episodes/00-introduction.Rmd" "a60ebda19db13cc24cca50b33e083df4" "site/built/00-introduction.md" "2024-03-13" "episodes/01-r-basics.Rmd" "2f4b7fd244990f97e0c2fe88bae2618b" "site/built/01-r-basics.md" "2024-03-13" "episodes/02-data-prelude.Rmd" "ab2b1fd3cdaae919f9e409f713a0a8ad" "site/built/02-data-prelude.md" "2024-03-12" "episodes/03-basics-factors-dataframes.Rmd" "cab7ab3fe53143558e6af3eee5774d35" "site/built/03-basics-factors-dataframes.md" "2024-03-12"