Skip to content

Commit 6aa0286

Browse files
committed
added lintr gh-actions test
1 parent cdfc1d2 commit 6aa0286

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: lint.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: r-lib/actions/setup-r@v2
21+
with:
22+
use-public-rspm: true
23+
24+
- uses: r-lib/actions/setup-r-dependencies@v2
25+
with:
26+
extra-packages: any::lintr, local::.
27+
needs: lint
28+
29+
- name: Lint
30+
run: lintr::lint_package()
31+
shell: Rscript {0}
32+
env:
33+
LINTR_ERROR_ON_LINT: true

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: FunnelPlotR
22
Type: Package
33
Title: Funnel Plots for Comparing Institutional Performance
4-
Version: 0.5.0
4+
Version: 0.5.9999
55
Authors@R: c(
66
person("Chris", "Mainey", ,"c.mainey1@nhs.net", role= c("aut", "cre"),
77
comment = c(ORCID ="0000-0002-3018-6171")

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ This suggest the variance is 6.24 times the condition mean, and definitely overd
120120
This is a huge topic, but applying overdispersed limits using either SHMI or Spiegelhalter methods adjust for this by inflating the limits:
121121

122122
```{r, funnel2, message=FALSE, fig.align='center', fig.retina=5, collapse=TRUE, warning=FALSE, eval=TRUE}
123-
b<-funnel_plot(medpar, numerator=los, denominator=prds, group = provnum, data_type = "SR",
123+
b < -funnel_plot(medpar, numerator=los, denominator=prds, group = provnum, data_type = "SR",
124124
title = 'Length of Stay Funnel plot for `medpar` data', draw_unadjusted = FALSE,
125125
draw_adjusted = TRUE, sr_method = "SHMI", label="outlier", limit=99)
126126

0 commit comments

Comments
 (0)