Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Commit

Permalink
Add lecture notes on packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 29, 2024
1 parent fdd30ba commit cb6e0c4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
14 changes: 13 additions & 1 deletion Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ git config --local --list
* Shutdown Jupyter: "File" -> "Hub Control Panel" -> "Stop My Server"
* Close all Jupyter and RStudio windows

## Start Envrionment after setup
## Start Envrionment after Setup

* Navigate to https://ci.skc.edu/ and click "Login to OSG Jupyter Notebook"
* Start Jupyter: Select "Data Science with RStudio" and click "Start"
Expand All @@ -142,6 +142,18 @@ git config --local --list
* Watch for errors
* Verify Pull:
* "Pull" again and it should say "Already up to date."

## Lesson Notes

* For installing external libraries you can install them via RStudio after they have been referenced in a R Markdown file with a `library(ratdat)`.
* Note: The file must be saved before the option to install is shown.
* Note: The R session must be restarted. Do this with
* "Session" -> "Restart R"
* Libraries can also be installed with a `Setup.Rmd` file.
* `Setup.Rmd` must be run once every time you start a new environment (start a Juypter Lab instance) (this can be different on other systems).
* See [Setup.Rmd](prep/Setup.Rmd) for an example.
* Do not include `install.packages()` in your R Markdown files (other than `Setup.Rmd) as the R Markdown file is run every time it is displayed with "Knit" and will re-install the packages every time.


## References and Resources

Expand Down
2 changes: 1 addition & 1 deletion prep/Setup.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ editor_options:
---
# Setup RStudio

Run this Notebook once in an environment to install packages.
Run this R Markdown notebook once in an environment to install packages. Watch the console output for messages as they are not shown in Viewer.

Configure mirror
```{r message=FALSE, warning=FALSE}
Expand Down

0 comments on commit cb6e0c4

Please sign in to comment.