Skip to content

Commit

Permalink
Work on dependency issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fpahlke committed Jul 1, 2024
1 parent bab748d commit a3cc36e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/quarto-deploy-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Install R Packages
run: |
R -e 'install.packages(c("rmarkdown", "checkmate"), lib="~/.R/library")'
R -e 'install.packages(c("knitr", "rmarkdown", "checkmate"), lib="~/.R/library")'
- name: Setup Quarto
uses: quarto-dev/quarto-actions/setup@v2
Expand Down
11 changes: 0 additions & 11 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,6 @@ Important: To use this work you must provide the name of the creators (initial a
-->
```

```{r}
#| echo: false
#| eval: true
if (!require(checkmate)) {
install.packages("checkmate")
}
if (!require(rmarkdown)) {
install.packages("rmarkdown")
}
```

Welcome to the homepage of the tutorial *"Good Software Engineering Practice for R Packages"*, part of the useR! Conference 2024 in Salzburg, Austria. In this course you will learn hands-on skills and tools to engineer reliable R packages used in statistics. The workshop will be conducted in 3.5 hours and will be a mix of presentations and exercises. Participants need to be comfortable with writing functions in R and use their own laptops as a prerequisite.

## Event Details
Expand Down
13 changes: 13 additions & 0 deletions slides/02_r_packages.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ author: Daniel Sabanés Bové

# Introduction

```{r setup}
#| include: false
#| eval: true
#| echo: false
.libPaths("~/.R/library")
if (!require(rmarkdown)) {
install.packages("rmarkdown")
}
if (!require(knitr)) {
install.packages("knitr")
}
```

## What You Know Already

- Packages provide a mechanism for loading optional code, data, and
Expand Down
15 changes: 15 additions & 0 deletions slides/03_workflow.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,21 @@ world...
:::
:::

```{r}
#| echo: false
#| include: false
#| eval: true
if (!require(checkmate)) {
install.packages("checkmate")
}
if (!require(rmarkdown)) {
install.packages("rmarkdown")
}
if (!require(knitr)) {
install.packages("knitr")
}
```

# Professional Workflow

![[Photo CC0 by ELEVATE on
Expand Down
12 changes: 12 additions & 0 deletions slides/04_quality.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ author: Friedrich Pahlke

## Why is Clean Code important?

```{r}
#| echo: false
#| include: false
#| eval: true
if (!require(rmarkdown)) {
install.packages("rmarkdown")
}
if (!require(knitr)) {
install.packages("knitr")
}
```

- **Maintainability**: The code is readable and understandable and has a
reduced complexity, i.e., it's easier to fix bugs
- **Extensibility**: The architecture is simpler, cleaner, and more
Expand Down

0 comments on commit a3cc36e

Please sign in to comment.