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

Commit

Permalink
Cleanup process and add Project file
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed May 17, 2024
1 parent c9a3419 commit 8c7505f
Show file tree
Hide file tree
Showing 6 changed files with 512 additions and 43 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
.ipynb_checkpoints/
.Rproj.user
.Rhistory
.RData
27 changes: 4 additions & 23 deletions prep/Preparation.Rmd
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
---
title: "Preparation"
output: html_document
editor_options:
chunk_output_type: console
---
# Lesson Prep
See [Setup.Rmd](Setup.Rmd) for setting up RStudio environment..

## Setup
# R Ecology

Update Tools with "Tools -\> Update" (do not pin) - takes a long time - don't do in class

To have output go in console set in the config for the Rmd file set "chunk output in console"

To view Rmd rendered (click Knit to html) in seprate windows select settings of the Rmd file and select "Preview in Window"

Install Packages
## Install Packages

```{r message=FALSE, warning=FALSE}
options(repos = list(CRAN="http://cran.rstudio.com/"))
Expand Down Expand Up @@ -61,17 +56,3 @@ ggplot(data = complete_old, mapping = aes(x = weight, y = hindfoot_length))
ggplot(data = complete_old, mapping = aes(x = weight, y = hindfoot_length)) +
geom_point()
```
## Presentatin Style

Top/bottom
```{r}
1+2
3+4
print('Hello World')
```





30 changes: 10 additions & 20 deletions prep/Preparation.html

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions prep/Setup.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: "Setup"
output: html_document
editor_options:
chunk_output_type: console
---

# Setup

Update Tools with "Tools -> Update" (do not pin) - takes a long time - don't do in class.

Use a "R Markdown" document (`output: html_document` in prolog).

To have the output display in the console (not inline) set in the config for the Rmd file set "chunk output in console".

To view Rmd rendered (click Knit to html) in separate windows select settings for the Rmd file (wheel) and select "Preview in Window"

Prolog should look like this:
```
---
title: "Setup"
output: html_document
editor_options:
chunk_output_type: console
---
```

Notes:

* R Notebooks seem fragile and Caching output seems dangerous. Use "Chunk Output Inline" for a more Notebook experence or use Juypter!
* R Markdown is a bit different (lists for example) than other markdown.
* With Rmd files I am a fan of using the console (chunk output in console) and use cmd-enter to run each line (opt-enter for not advancing cursor) for development.

# Test

Top/bottom
```{r}
1+2
3+4
print('Hello World')
```
441 changes: 441 additions & 0 deletions prep/Setup.html

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions skc-workshop.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Version: 1.0

RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

0 comments on commit 8c7505f

Please sign in to comment.