Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/panache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: panache

on:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
panache:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: posit-dev/setup-air@v1
# Lint disabled until panache has a fix for
# `[lint.rules] undefined-reference-label = false` being ignored
# (book-wide false positives on subfig refs and cross-file refs we
# cannot suppress).
- uses: jolars/panache-action@v1
with:
path: chapters/
lint: "false"
9 changes: 9 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ remotes::install_deps(dependencies = TRUE)
```

We use [Quarto](https://quarto.org/) to render this book.

## Formatting and linting

This project uses [panache](https://panache.bz/) to format and lint the Quarto documents. For the code cells, panache uses [air](https://posit-dev.github.io/air/) and [jarl](https://jarl.etiennebacher.com/) for formatting and linting, respectively.

```bash
panache format chapters/
panache lint chapters/
```
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Causal Inference in R

<!-- badges: start -->

<!-- badges: end -->

This repository contains the source code for the book *Causal Inference
Expand All @@ -20,3 +21,16 @@ remotes::install_deps(dependencies = TRUE)
```

We use [Quarto](https://quarto.org/) to render this book.

## Formatting and linting

This project uses [panache](https://panache.bz/) to format and lint the
Quarto documents. For the code cells, panache uses
[air](https://posit-dev.github.io/air/) and
[jarl](https://jarl.etiennebacher.com/) for formatting and linting,
respectively.

``` bash
panache format chapters/
panache lint chapters/
```
1 change: 1 addition & 0 deletions chapters/00-setup.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
```{r}
#| include: false

source(here::here("R/ggdag-mask.R"))
source(here::here("R/setup.R"))
library(tidyverse)
Expand Down
94 changes: 61 additions & 33 deletions chapters/01-casual-to-causal.qmd

Large diffs are not rendered by default.

183 changes: 110 additions & 73 deletions chapters/02-whole-game.qmd

Large diffs are not rendered by default.

Loading
Loading