-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Loyal Goff
committed
Aug 10, 2022
1 parent
14e116d
commit 97ab5db
Showing
8 changed files
with
5,410 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
|
||
# RStudio files | ||
.Rproj.user/ | ||
*.Rproj | ||
|
||
# produced vignettes | ||
vignettes/*.html | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
title: "Intro to RStudo and RNotebooks" | ||
output: | ||
html_notebook: | ||
toc: true | ||
toc_depth: 2 | ||
toc_float: true | ||
editor_options: | ||
chunk_output_type: inline | ||
--- | ||
|
||
# Introduction | ||
|
||
# Learning Objectives | ||
|
||
# R Notebooks | ||
|
||
Notebooks are designed to facilitate 'literate analysis', which aims to make data analysis more interpretable and transparent. With notebooks, code is embedded with the narrative of the analysis. This has the benefit of helping to convey the specific ideas and thought processes of the author, and allows the introduction of concepts in the workflow that helps to facilitate understanding. | ||
|
||
RStudio provides several tools to help develop and share R Notebooks, including the development and maintenance of a specific language structure called RMarkdown. RMarkdown combines the programming language R, with the simple markup language [Markdown](https://daringfireball.net/projects/markdown/). Markdown was designed to help convert human-readable text to HTML or PDF documents using a simple syntax. | ||
|
||
- [RMarkdown Cheat Sheet](https://www.rstudio.com/wp-content/uploads/2015/02/rmarkdown-cheatsheet.pdf) | ||
|
||
An R Markdown document begins with a short header section that describes the document that will be created. For example, this R Notebook has the following header at the top: | ||
|
||
--- | ||
title: "Intro to RStudo and RNotebooks" | ||
output: | ||
html_notebook: | ||
toc: true | ||
toc_depth: 2 | ||
toc_float: true | ||
editor_options: | ||
chunk_output_type: inline | ||
--- | ||
|
||
This header uses the [YAML](https://en.wikipedia.org/wiki/YAML) language syntax | ||
|
||
# RMarkdown Basics | ||
|
||
|
||
# Chunks | ||
|
||
## Non-code chunks | ||
|
||
In modern RMarkdown, \## Code chunks | ||
|
||
### Running a code chunk | ||
|
||
```{r } | ||
x<-rnorm(100) | ||
mean(x) | ||
``` | ||
|
||
|
||
# Source vs Visual editor | ||
|
||
# Knitting an R Notebook | ||
|
||
```{r session} | ||
sessionInfo() | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
title: "Getting Started Instructions" | ||
author: "Loyal Goff" | ||
date: '2022-08-05' | ||
output: html_document | ||
--- | ||
|
||
```{r setup, include=FALSE} | ||
knitr::opts_chunk$set(echo = TRUE) | ||
``` | ||
|
||
# Getting Started Instructions (\<Course Number\>) | ||
|
||
## Connecting to the Course RStudio Workbench Server | ||
|
||
## Local Installation | ||
|
||
### Downloading & Installing R | ||
|
||
To get started, you will first have to install R on your local machine. Both R and RStudio are free to download and use. R is developed and maintained by a large network of individuals and the software is made available (open source) on the [Comprehensive R Archive Network](http://cran.r-project.org/). | ||
|
||
 | ||
|
||
#### Windows 10 | ||
|
||
#### Windows \< 10 | ||
|
||
#### Mac OSX / Linux | ||
|
||
### Downloading & Installing RStudio | ||
|
||
#### Windows 10 | ||
|
||
#### Windows \< 10 | ||
|
||
#### Mac OSX / Linux | ||
|
||
```{r} | ||
sessionInfo() | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.