Skip to content

Commit

Permalink
Merge pull request #115 from ramses-antibiotics/bugfix/AMR_fn_name
Browse files Browse the repository at this point in the history
fix AMR deprecated as.rsi()
  • Loading branch information
peterdutey committed Feb 11, 2024
2 parents 62f9657 + d13a573 commit d31a960
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: Ramses
Type: Package
Title: R Package for Antimicrobial Stewardship & Surveillance
Version: 0.7.1
Version: 0.7.2
Authors@R: c(
person(given = "Peter",
family = "Dutey-Magni",
Expand All @@ -26,7 +26,7 @@ Encoding: UTF-8
LazyData: true
Depends:
R (>= 4.0.0),
AMR (>= 1.8.0)
AMR (>= 2.0.0)
Imports:
DBI,
rlang,
Expand Down Expand Up @@ -64,7 +64,7 @@ Suggests:
Remotes:
ramses-antibiotics/snomedizer
RdMacros: Rdpack
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
VignetteBuilder: knitr,rmarkdown
Collate:
'Ramses-deprecated.R'
Expand Down
12 changes: 12 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@

# Ramses 0.7.2

*11 February 2024*


## Changed

- Now requires minimum `AMR` v2.0.0.
- Updated function calls and documentation following deprecation of `AMR::as.rsi()`.


# Ramses 0.7.1

*19 November 2023*


## Changed

- Now requires minimum `dbplyr` v2.4.0.
Expand Down
2 changes: 1 addition & 1 deletion R/validate_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ validate_administrations <- function(data) {
#' (can be the same as \code{drug_name})}
#' \item{\code{rsi_code}}{\code{"R"} (resistant), \code{"S"} (susceptible),
#' or \code{"I"} (intermediate exposure), as determined by the laboratory or by
#' \code{\link[AMR]{as.rsi}()} on the basis of minimum inhibitory concentrations
#' \code{\link[AMR]{as.sir}()} on the basis of minimum inhibitory concentrations
#' or disk diffusion diameters}
#' }
#'
Expand Down
2 changes: 1 addition & 1 deletion man/validate_microbiology.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/load-data.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ be found in `Ramses::reference_specimen_type`.
Susceptibility testing results in the example dataset are already
interpreted as Resistant/Increased exposure/Susceptible (RSI). Where
needed, minimum inhibitory concentrations and disk diffusion diameters
can be interpreted as RSI using the `as.rsi()` function provided by the
can be interpreted as RSI using the `as.sir()` function provided by the
AMR package.

If possible, use the most specific concept available (eg
Expand Down

0 comments on commit d31a960

Please sign in to comment.