-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathREADME.Rmd
62 lines (46 loc) · 2.18 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# StatCompLab
<!-- badges: start -->
<!-- badges: end -->
This package collects workshop materials for Statistical Computing (MATH10093)
at the University of Edinburgh 2021/22.
The tutorial documents are browsable online at [https://finnlindgren.github.io/StatCompLab/](https://finnlindgren.github.io/StatCompLab/)
Contact Finn Lindgren, [finn.lindgren@ed.ac.uk](mailto:finn.lindgren@ed.ac.uk)
for information.
The package version number system is `YearOfStudy`.`StudyWeek`.`MinorUpdate`
## Installation
You can install (and later upgrade) the package from
[GitHub](https://github.com/) with:
``` r
# If devtools isn't installed, first run install.packages("remotes")
remotes::install_github("finnlindgren/StatCompLab")
```
If you want to view the vignette versions of the tutorials within RStudio,
you need to add the `build_vignettes` argument:
``` r
remotes::install_github("finnlindgren/StatCompLab", build_vignettes = TRUE)
```
## Usage
The most convenient way to access the tutorial documents is to run them in the `Tutorial` tab in the upper right part of RStudio. That allows you to see the tutorial text and code hints at the same as your code files, and while running code in the Console and viewing plots.
These alternative methods also allows viewing of the documents, but are less convenient; vignettes show up in the same space as the plots, and the `run_tutorial` blocks the Console window from being used to run code.
```{r example,eval=FALSE}
library(StatCompLab)
# To install the vignette versions, add build_vignettes=TRUE to the install_github() call above.
vignette(package = "StatCompLab") # List available vignettes
vignette("Tutorial01", "StatCompLab") # View a specific vignette
# The following method blocks the Console from running other code; better to use the Tutorials pane instead
library(learnr)
available_tutorials("StatCompLab") # List available tutorials
run_tutorial("Tutorial01", "StatCompLab") # Run a specific tutorial
```