Skip to content

Commit

Permalink
fix: remove R from workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil committed Feb 19, 2025
1 parent 86b9b50 commit a67a6b3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 50 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
sysfonts
ggplot2
ggtext
showtext
knitr
- uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
Expand Down Expand Up @@ -68,7 +57,7 @@ jobs:
shell: bash
run: npm install -g decktape

- name: Update Screenshot
- name: Take Screenshot
shell: bash
run: |
decktape reveal \
Expand All @@ -78,7 +67,10 @@ jobs:
--size "1920x1080" \
--slides 1 \
_site/index.html _site/index.pdf
- name: Update Screenshot
shell: bash
run: |
mv _site/index_1_1920x1080.png .github/template.png
BRANCH=ci/update-thumbs
if git show-ref --quiet refs/heads/${BRANCH}; then
Expand Down
35 changes: 35 additions & 0 deletions _extensions/coeos/_code.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
```{r}
#| include: false
sysfonts::font_add_google("Alegreya Sans", "Alegreya Sans", regular.wt = 300)
showtext::showtext_auto()
source("_extensions/mcanouil/coeos/setup-ggplot2-coeos.R")
```

# PART 1 With `code` {.center .center-x}

## Introduction

### Subtitle

`some code` and some text.
A URL [mickael.canouil.fr](https://mickael.canouil.fr/).

```{r}
#| echo: true
1 + 1
```

```{r}
#| echo: true
x <- 1
y <- x + 1
y
```

## GGPLOT2 With `code`

```{r}
#| echo: true
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) + geom_point()
```
38 changes: 1 addition & 37 deletions template.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,7 @@ embed-resources: false
format: coeos-revealjs
---

```{r}
#| include: false
sysfonts::font_add_google("Alegreya Sans", "Alegreya Sans", regular.wt = 300)
showtext::showtext_auto()
source("_extensions/mcanouil/coeos/setup-ggplot2-coeos.R")
```

# PART 1 With `code` {.center .center-x}

## Introduction

### Subtitle

`some code` and some text.
A URL [mickael.canouil.fr](https://mickael.canouil.fr/).

```{r}
#| echo: true
1 + 1
```

```{r}
#| echo: true
x <- 1
y <- x + 1
y
```

## GGPLOT2 With `code`

```{r}
#| echo: true
library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) + geom_point()
```

# PART 2 Without `code` {.center .center-x}
# PART 1 Without `code` {.center .center-x}

## New slide {.smaller}

Expand Down

0 comments on commit a67a6b3

Please sign in to comment.