Skip to content

Commit 8212dc2

Browse files
authored
installing r and adding mma (#6)
Need to install R (and some packages) to get the MMA module working
1 parent df1cde9 commit 8212dc2

File tree

13 files changed

+40
-26977
lines changed

13 files changed

+40
-26977
lines changed

.github/workflows/publish.yml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,56 @@
11
on:
22
workflow_dispatch:
33
push:
4-
branches: main
4+
branches:
5+
- main # run on every push to main
56

67
name: Quarto Publish
78

89
jobs:
910
build-deploy:
1011
runs-on: ubuntu-latest
12+
1113
permissions:
12-
contents: write
14+
contents: write # allow the workflow to push to gh-pages
15+
1316
steps:
17+
# 1 ▸ Check out your repository
1418
- name: Check out repository
1519
uses: actions/checkout@v3
16-
20+
21+
# 2 ▸ Install R 4.4.x
22+
- name: Set up R
23+
uses: r-lib/actions/setup-r@v2
24+
with:
25+
r-version: '4.4' # GitHub will pick the latest patch (currently 4.4.2)
26+
27+
# 3 ▸ Install required R packages (CRAN)
28+
- name: Install R package dependencies
29+
uses: r-lib/actions/setup-r-dependencies@v2
30+
with:
31+
needs: |
32+
tidyverse
33+
lubridate
34+
SimplyAgree
35+
DescTools
36+
fmsb
37+
scales
38+
janitor
39+
psych
40+
here
41+
irr
42+
magrittr
43+
flextable
44+
webexercises
45+
cache: true # uncomment to enable dependency caching
46+
47+
# 4 ▸ Install Quarto
1748
- name: Set up Quarto
1849
uses: quarto-dev/quarto-actions/setup@v2
50+
# with:
51+
# version: '1.5.48' # pin a specific Quarto version if desired
1952

53+
# 5 ▸ Render the site and publish to gh-pages
2054
- name: Render and Publish
2155
uses: quarto-dev/quarto-actions/publish@v2
2256
with:

baseball/mlb_injuries/index.qmd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ callout-icon: false
4242
- The data for the `tj_surgeries_mlb_milb.csv` file was derived from data accumulated by [@MLBPlayerAnalys](https://docs.google.com/spreadsheets/d/1gQujXQQGOVNaiuwSN680Hq-FDVsCwvN-3AazykOBON0/edit?gid=0#gid=0) over many years. The original data lists any reported Tommy John surgery for a player now playing in the MLB or MiLB. This data was aggregated by year to produce the data used in this module.
4343
:::
4444

45+
<!--
4546
# Welcome video
4647
4748
<iframe width="560" height="315" src title="placeholder">
4849
4950
</iframe>
5051
52+
-->
53+
5154
# Introduction
5255

5356
In this module, you will explore Major League Baseball (MLB) injury data through time series analysis and forecasting. The dataset contains monthly injury counts from 2001 to 2023. You will learn how to create time series plots, decompose time series data, and forecast future injury counts.

0 commit comments

Comments
 (0)