-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit dd41faf
Showing
7 changed files
with
2,560 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Render Website | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
render-slides: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
file: | ||
- slides | ||
- report | ||
|
||
container: | ||
image: rocker/tidyverse:4.4.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
install2.r data.table slurmR | ||
- name: Render ${{ matrix.file }} | ||
run: | | ||
quarto render ${{ matrix.file }}.qmd | ||
- name: Save as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ${{ matrix.file }}.html | ||
name: ${{ matrix.file }} |
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,2 @@ | ||
*_cache | ||
*_files |
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,15 @@ | ||
# Template project for Advanced Programming | ||
|
||
The template project has the following files: | ||
|
||
- `README.md`: this file. | ||
- `.gitignore`: a file that tells git which files to ignore. | ||
- `slides.qmd`: a presentation in quarto format. | ||
- `report.qmd`: a report in quarto format. | ||
- `.github/workflows/website.yaml`: The workflow that builds the html and pdf files. New dependencies can be added on the step "Install dependencies"; the following installs the R packages data.table and slurmR from CRAN: | ||
|
||
```yaml | ||
- name: Install dependencies | ||
run: | | ||
install2.r data.table slurmR | ||
``` |
Binary file not shown.
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,15 @@ | ||
--- | ||
format: pdf | ||
author: John Doe | ||
title: My fancy presentation | ||
subtitle: For PHS 7045 | ||
--- | ||
|
||
# Section 1 | ||
|
||
## Sub-section 1 | ||
|
||
```{r} | ||
#| label: some-code | ||
library(MASS) | ||
``` |
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,18 @@ | ||
--- | ||
title: My fancy presentation | ||
subtitle: For PHS 7045 | ||
author: John Doe | ||
format: revealjs | ||
embed-resources: true | ||
--- | ||
|
||
# Section 1 | ||
|
||
## Slide 1 | ||
|
||
|
||
```{r} | ||
#| label: some-code | ||
library(MASS) | ||
``` |