mirror of
https://github.com/msberends/AMR.git
synced 2025-01-15 23:21:37 +01:00
Compare commits
2 Commits
b089f7a5d7
...
743479d460
Author | SHA1 | Date | |
---|---|---|---|
743479d460 | |||
d2252b1062 |
@ -31,11 +31,13 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
# run in each PR in this repo
|
# run in each PR in this repo
|
||||||
branches: '**'
|
branches: '**'
|
||||||
|
push:
|
||||||
|
branches: '**'
|
||||||
|
|
||||||
name: R-code-check-PR
|
name: check-devel
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
R-code-check-PR:
|
R-code-check:
|
||||||
runs-on: ${{ matrix.config.os }}
|
runs-on: ${{ matrix.config.os }}
|
||||||
|
|
||||||
continue-on-error: ${{ matrix.config.allowfail }}
|
continue-on-error: ${{ matrix.config.allowfail }}
|
||||||
@ -47,11 +49,8 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
- {os: macOS-latest, r: 'devel', allowfail: true}
|
- {os: macOS-latest, r: 'devel', allowfail: true}
|
||||||
- {os: macOS-latest, r: 'release', allowfail: false}
|
|
||||||
- {os: ubuntu-latest, r: 'devel', allowfail: true}
|
- {os: ubuntu-latest, r: 'devel', allowfail: true}
|
||||||
- {os: ubuntu-latest, r: 'release', allowfail: false}
|
|
||||||
- {os: windows-latest, r: 'devel', allowfail: true}
|
- {os: windows-latest, r: 'devel', allowfail: true}
|
||||||
- {os: windows-latest, r: 'release', allowfail: false}
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -66,7 +65,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
r-version: ${{ matrix.config.r }}
|
r-version: ${{ matrix.config.r }}
|
||||||
# use RStudio Package Manager to quickly install packages
|
# use RStudio Package Manager to quickly install packages
|
||||||
use-public-rspm: true
|
use-public-rspm: true
|
||||||
|
|
||||||
- uses: r-lib/actions/setup-r-dependencies@v2
|
- uses: r-lib/actions/setup-r-dependencies@v2
|
||||||
with:
|
with:
|
@ -36,7 +36,7 @@ on:
|
|||||||
# this is to check that all dependencies are still available (see R/zzz.R)
|
# this is to check that all dependencies are still available (see R/zzz.R)
|
||||||
- cron: '0 1 * * *'
|
- cron: '0 1 * * *'
|
||||||
|
|
||||||
name: R-code-check
|
name: check-release
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
R-code-check:
|
R-code-check:
|
||||||
@ -50,24 +50,21 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
config:
|
config:
|
||||||
# test all systems against all released versions of R >= 3.0, we support them all!
|
# test all released versions of R >= 3.0, we support them all!
|
||||||
- {os: macOS-latest, r: 'devel', allowfail: true}
|
|
||||||
- {os: macOS-latest, r: '4.2', allowfail: false}
|
- {os: macOS-latest, r: '4.2', allowfail: false}
|
||||||
- {os: macOS-latest, r: '4.1', allowfail: false}
|
- {os: macOS-latest, r: '4.1', allowfail: false}
|
||||||
- {os: macOS-latest, r: '4.0', allowfail: false}
|
- {os: macOS-latest, r: '4.0', allowfail: false}
|
||||||
- {os: macOS-latest, r: '3.6', allowfail: false}
|
- {os: macOS-latest, r: '3.6', allowfail: false}
|
||||||
- {os: ubuntu-22.04, r: 'devel', allowfail: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
|
||||||
- {os: ubuntu-22.04, r: '4.2', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '4.2', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '4.1', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '4.1', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '4.0', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '4.0', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.6', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.6', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.5.0', allowfail: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.5', allowfail: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.4', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.4', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.3', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.3', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.2', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.2', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.1', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.1', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: ubuntu-22.04, r: '3.0', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
- {os: ubuntu-22.04, r: '3.0', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
|
||||||
- {os: windows-latest, r: 'devel', allowfail: true}
|
|
||||||
- {os: windows-latest, r: '4.2', allowfail: false}
|
- {os: windows-latest, r: '4.2', allowfail: false}
|
||||||
- {os: windows-latest, r: '4.1', allowfail: false}
|
- {os: windows-latest, r: '4.1', allowfail: false}
|
||||||
- {os: windows-latest, r: '4.0', allowfail: false}
|
- {os: windows-latest, r: '4.0', allowfail: false}
|
@ -1,5 +1,5 @@
|
|||||||
Package: AMR
|
Package: AMR
|
||||||
Version: 1.8.2.9031
|
Version: 1.8.2.9033
|
||||||
Date: 2022-10-05
|
Date: 2022-10-05
|
||||||
Title: Antimicrobial Resistance Data Analysis
|
Title: Antimicrobial Resistance Data Analysis
|
||||||
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
Description: Functions to simplify and standardise antimicrobial resistance (AMR)
|
||||||
|
2
NEWS.md
2
NEWS.md
@ -1,4 +1,4 @@
|
|||||||
# AMR 1.8.2.9031
|
# AMR 1.8.2.9033
|
||||||
|
|
||||||
This version will eventually become v2.0! We're happy to reach a new major milestone soon!
|
This version will eventually become v2.0! We're happy to reach a new major milestone soon!
|
||||||
|
|
||||||
|
2
R/rsi.R
2
R/rsi.R
@ -164,7 +164,7 @@
|
|||||||
#' as.rsi() # automatically determines urine isolates
|
#' as.rsi() # automatically determines urine isolates
|
||||||
#'
|
#'
|
||||||
#' df %>%
|
#' df %>%
|
||||||
#' mutate_at(vars(AMP:NIT), as.rsi, mo = "E. coli", uti = TRUE)
|
#' mutate_at(vars(AMP:TOB), as.rsi, mo = "E. coli", uti = TRUE)
|
||||||
#' }
|
#' }
|
||||||
#'
|
#'
|
||||||
#' # For CLEANING existing R/SI values ------------------------------------
|
#' # For CLEANING existing R/SI values ------------------------------------
|
||||||
|
@ -229,7 +229,7 @@ if (require("dplyr")) {
|
|||||||
as.rsi() # automatically determines urine isolates
|
as.rsi() # automatically determines urine isolates
|
||||||
|
|
||||||
df \%>\%
|
df \%>\%
|
||||||
mutate_at(vars(AMP:NIT), as.rsi, mo = "E. coli", uti = TRUE)
|
mutate_at(vars(AMP:TOB), as.rsi, mo = "E. coli", uti = TRUE)
|
||||||
}
|
}
|
||||||
|
|
||||||
# For CLEANING existing R/SI values ------------------------------------
|
# For CLEANING existing R/SI values ------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user