diff --git a/.github/workflows/quarto-publish.yml b/.github/workflows/quarto-publish.yml index 101e663..26e9073 100644 --- a/.github/workflows/quarto-publish.yml +++ b/.github/workflows/quarto-publish.yml @@ -25,22 +25,22 @@ jobs: quarto install --no-prompt extension grantmcdermott/quarto-revealjs-clean quarto install --no-prompt extension ArthurData/quarto-confetti - # - name: Install Python and Dependencies - # uses: actions/setup-python@v4.3.0 - # with: - # python-version: '3.10' - # cache: 'pip' - # - run: pip install -r requirements.txt - - # - name: Install R - # uses: r-lib/actions/setup-r@v2 - # with: - # r-version: '4.2.0' - - # - name: Install R Dependencies - # uses: r-lib/actions/setup-renv@v2 - # with: - # cache-version: 1 + - name: Install Python and Dependencies + uses: actions/setup-python@v4.3.0 + with: + python-version: '3.10' + cache: 'pip' + - run: pip install -r requirements.txt + + - name: Install R + uses: r-lib/actions/setup-r@v2 + with: + r-version: '4.2.0' + + - name: Install R Dependencies + uses: r-lib/actions/setup-renv@v2 + with: + cache-version: 1 - name: Publish to GitHub Pages (and render) uses: quarto-dev/quarto-actions/publish@v2 diff --git a/index.qmd b/index.qmd index 40fa564..6c96e49 100644 --- a/index.qmd +++ b/index.qmd @@ -60,7 +60,7 @@ different types. :::: {.columns} ::: {.column width="50%"} -**ToDo** +Unordered... ```markdown + Learn Markdown @@ -71,7 +71,7 @@ different types. ::: ::: {.column width="50%"} -**ToDo** +Unordered... + Learn Markdown + Create Quarto Slides @@ -92,7 +92,7 @@ different types. :::: {.columns} ::: {.column width="50%"} -**Ordered** +Ordered... ```markdown 1. A comes before @@ -103,7 +103,7 @@ different types. ::: ::: {.column width="50%"} -**Ordered** +Ordered... 1. A comes before 2. B which is followed by @@ -166,12 +166,24 @@ You can write equations if you need to. ## R code +```{R} +library(ggplot2) +library(reticulate) +``` + ::: {.notes} [R](https://www.r-project.org/) code can be embeded and executed to produce tables and figures. ::: ## Python code +Requires you to load the `reticulate` library in R first. + +```{python} +import numpy as np +import pandas as pd +``` + ::: {.notes} As can [Python](https://www.python.org) code. ::: diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5da331c --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +numpy +pandas