Skip to content

Commit

Permalink
Lint Quarto docs (#88)
Browse files Browse the repository at this point in the history
* Bump R pre-commit to 0.4.3

* Lint all Quarto docs
  • Loading branch information
dfsnow authored Jan 22, 2025
1 parent 3f69b10 commit 21afae1
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .lintr
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
linters: linters_with_defaults(
object_name_linter = NULL,
object_usage_linter = NULL
object_usage_linter = NULL,
object_length_linter = NULL
)
encoding: "UTF-8"
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# R specific hooks: https://github.com/lorenzwalthert/precommit
repos:
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.2
rev: v0.4.3
hooks:
- id: style-files
args: [--style_pkg=styler, --style_fun=tidyverse_style]
Expand Down
4 changes: 2 additions & 2 deletions reports/performance/_model.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -1101,8 +1101,8 @@ ggplot(training_data_monthly, aes(x = date, y = variance_ratio)) +

```{r _model_overall_variance_chart}
ggplot(
training_data_monthly_long %>% filter(Metric %in%
c("variance_sale", "variance_fmv")),
training_data_monthly_long %>%
filter(Metric %in% c("variance_sale", "variance_fmv")),
aes(x = date, y = Value, color = Metric)
) +
geom_line() +
Expand Down
4 changes: 2 additions & 2 deletions reports/performance/_outcomes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ stats_median_yoy_delta %>%
) %>%
kable(
"html",
escape = F, col.names = rep("", 7), align = c("l", rep("c", 6))
escape = FALSE, col.names = rep("", 7), align = c("l", rep("c", 6))
) %>%
kable_styling(full_width = F) %>%
kable_styling(full_width = FALSE) %>%
add_header_above(c(
"Township" = 1,
"Ratio" = 1,
Expand Down
12 changes: 10 additions & 2 deletions reports/performance/_outliers.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ training_data %>%
group_by(meta_year, outlier_reasons_to_graph) %>%
summarise(n = n()) %>%
rename(Year = meta_year) %>%
pivot_wider(id_cols = Year, names_from = outlier_reasons_to_graph, values_from = n) %>%
pivot_wider(
id_cols = Year,
names_from = outlier_reasons_to_graph,
values_from = n
) %>%
kable() %>%
kable_styling("striped")
Expand All @@ -72,7 +76,11 @@ training_data %>%
group_by(meta_year, outlier_reasons_to_graph) %>%
summarise(n = n(), .groups = "drop") %>%
rename(Year = meta_year) %>%
pivot_wider(id_cols = Year, names_from = outlier_reasons_to_graph, values_from = n) %>%
pivot_wider(
id_cols = Year,
names_from = outlier_reasons_to_graph,
values_from = n
) %>%
kable() %>%
kable_styling("striped")
```
Expand Down

0 comments on commit 21afae1

Please sign in to comment.