This website requires JavaScript.
Explore
Help
Sign In
⚠️
SERVICE NOTICE: This instance will be decommissioned 1 december of this year (2026). Please migrate your projects to our new repository:
https://gitrepo.service.rug.nl
P281424
/
AMR
Watch
1
Star
0
Fork
0
mirror of
https://github.com/msberends/AMR.git
synced
2026-11-16 00:10:57 +01:00
Code
Releases
Activity
Files
08aa47842e17781d74ffeb2cc267cbdec7cae524
AMR
/
tests
/
testthat
T
History
dr. M.S. (Matthijs) Berends
08aa47842e
(v3.0.1.9152) Let a named colours_SIR without S, I or R use the default colours for these, which fixes the example of ggplot_sir() with colours = c(SI = "yellow"), let ggplot_sir() pass the facet as a value to facet_sir(), and make the test of the eucast_I default independent of the AMR_guideline option
2026-10-16 04:34:52 +02:00
..
helper-functions.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
helper-microorganisms.R
(v3.0.1.9114) Fix errors without cli and on R 3.0, and make the tinytest pipeline actually run the unit tests
2026-10-10 14:54:15 +02:00
test-_deprecated.R
(v3.0.1.9114) Fix errors without cli and on R 3.0, and make the tinytest pipeline actually run the unit tests
2026-10-10 14:54:15 +02:00
test-_misc.R
(v3.0.1.9116) New sir_combine() for combination therapy as one engine for antibiogram(), wisca(), count_*() and proportion_*() (
#321
), and make all suggested packages runtime-only with a new CI workflow without dplyr
2026-10-11 20:36:31 +02:00
test-ab_from_text.R
(v3.0.1.9135) Fix get_mo_source() removing the mo_source file at the default location, returning the wrong mo_source, and throwing an error after the original file was moved, and run the unit tests in CI also in a real interactive session and with a user setup, a Dutch locale, and CLSI as default guideline, with tests that no longer assume an English locale or EUCAST
2026-10-14 23:34:45 +02:00
test-ab_property.R
(v3.0.1.9135) Fix get_mo_source() removing the mo_source file at the default location, returning the wrong mo_source, and throwing an error after the original file was moved, and run the unit tests in CI also in a real interactive session and with a user setup, a Dutch locale, and CLSI as default guideline, with tests that no longer assume an English locale or EUCAST
2026-10-14 23:34:45 +02:00
test-ab.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-age.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-amr_selectors.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-antibiogram.R
(v3.0.1.9151) Fix inconsistencies in the plotting functions and correct the translations of the interpretation categories
2026-10-15 22:25:20 +02:00
test-atc_online.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-av_from_text.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-av_property.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-av.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-availability.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-bug_drug_combinations.R
Let aggregated analyses follow the guideline for the 'I' category in count_df(), proportion_df(), sir_df(), the plotting functions, antibiogram(), wisca(), and bug_drug_combinations(), deprecate combine_SI in favour of guideline, fix format() on bug_drug_combinations() counting I as resistant, and add a shared section 'Interpretation of SIR'
2026-10-15 09:58:21 +02:00
test-count.R
Let aggregated analyses follow the guideline for the 'I' category in count_df(), proportion_df(), sir_df(), the plotting functions, antibiogram(), wisca(), and bug_drug_combinations(), deprecate combine_SI in favour of guideline, fix format() on bug_drug_combinations() counting I as resistant, and add a shared section 'Interpretation of SIR'
2026-10-15 09:58:21 +02:00
test-custom_antimicrobials.R
(v3.0.1.9132) Make translating around 50 times faster and coercion of unknown input in as.ab() up to 70 times faster with identical results, use DOIs instead of PubMed URLs, shorten an example line, and reword cran-comments.md
2026-10-14 20:17:28 +02:00
test-custom_microorganisms.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-data-microorganisms.R
Update taxonomy of microorganisms (2026-10) (
#312
)
2026-10-07 12:55:12 +02:00
test-data.R
(v3.0.1.9149) Fix WHONET codes in microorganisms.codes that referred to unrelated microorganisms, let codes refer to the name they were named after and add a source column, and replace the fuzzy matching of WHONET names by exact matching with a guard against unreviewed remaps
2026-10-15 21:08:04 +02:00
test-disk.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-first_isolate.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-g.test.R
(v3.0.1.9116) New sir_combine() for combination therapy as one engine for antibiogram(), wisca(), count_*() and proportion_*() (
#321
), and make all suggested packages runtime-only with a new CI workflow without dplyr
2026-10-11 20:36:31 +02:00
test-get_episode.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-ggplot_sir.R
(v3.0.1.9152) Let a named colours_SIR without S, I or R use the default colours for these, which fixes the example of ggplot_sir() with colours = c(SI = "yellow"), let ggplot_sir() pass the facet as a value to facet_sir(), and make the test of the eucast_I default independent of the AMR_guideline option
2026-10-16 04:34:52 +02:00
test-guess_ab_col.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-interpretive_rules.R
(v3.0.1.9135) Fix get_mo_source() removing the mo_source file at the default location, returning the wrong mo_source, and throwing an error after the original file was moved, and run the unit tests in CI also in a real interactive session and with a user setup, a Dutch locale, and CLSI as default guideline, with tests that no longer assume an English locale or EUCAST
2026-10-14 23:34:45 +02:00
test-italicise_taxonomy.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-join_microorganisms.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-key_antimicrobials.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-kurtosis.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-like.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-mdro.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-mean_amr_distance.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-mic.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-mo_property.R
Update taxonomy of microorganisms (2026-10) (
#312
)
2026-10-07 12:55:12 +02:00
test-mo_source.R
(v3.0.1.9136) Fix the CI entry with a Dutch locale by using a UTF-8 locale that is installed on the runner, and skip the mo_source tests with skip_if() so that the tinytest harness for old R versions supports them
2026-10-15 00:11:07 +02:00
test-mo.R
(v3.0.1.9148) Store zone diameters without S category as blocking rows for EUCAST and as R-only rows for CLSI instead of capping them at 50 mm, let as.mo() return the complex for names such as 'Acinetobacter calcoaceticus-baumannii complex', make the breakpoint reproduction scripts stop on unchecked data defects and year-independent, and document that as.disk() returns NA above 50 mm
2026-10-15 17:05:41 +02:00
test-pca.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-plotting.R
(v3.0.1.9152) Let a named colours_SIR without S, I or R use the default colours for these, which fixes the example of ggplot_sir() with colours = c(SI = "yellow"), let ggplot_sir() pass the facet as a value to facet_sir(), and make the test of the eucast_I default independent of the AMR_guideline option
2026-10-16 04:34:52 +02:00
test-proportion.R
Let aggregated analyses follow the guideline for the 'I' category in count_df(), proportion_df(), sir_df(), the plotting functions, antibiogram(), wisca(), and bug_drug_combinations(), deprecate combine_SI in favour of guideline, fix format() on bug_drug_combinations() counting I as resistant, and add a shared section 'Interpretation of SIR'
2026-10-15 09:58:21 +02:00
test-random.R
(v3.0.1.9129) Add guideline argument to random_mic() and random_disk() so that values are based on one guideline version, make guideline years in examples, vignettes and website always the latest, and reword NEWS
2026-10-13 21:43:19 +02:00
test-session_cache.R
(v3.0.1.9134) Add session cache assertions for separate as.ab() and as.mo() calls, for get_mo_source() without a file, and for real cache hits, which detect the cache being emptied in interactive sessions
2026-10-14 22:49:00 +02:00
test-sir_combine.R
(v3.0.1.9123) Add method argument to sir_combine() for resistance within a group (most_resistant), and restore the AMR 3.0.1 behaviour of count_*() and proportion_*() for multiple antimicrobials (
#321
)
2026-10-12 21:37:13 +02:00
test-sir.R
(v3.0.1.9147) Keep EUCAST blocking rows for infections other than UTI where EUCAST only gives a UTI breakpoint, e.g. breakpoints in brackets for aminoglycosides in Acinetobacter, and let as.sir() with unknown uti consistently prefer non-UTI breakpoints, use UTI breakpoints only if no others exist and note this in sir_interpretation_history() every time
2026-10-15 14:55:57 +02:00
test-skewness.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-tidymodels.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-top_n_microorganisms.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-translate.R
(v3.0.1.9125) Fix translations being translated again (e.g. Ticarcillinee, groupee) and untranslated parts of combination names, and let as.mo() recognise translated names in the set language, cached per language
2026-10-12 22:25:57 +02:00
test-vctrs.R
new eucast breakpoints parsing
2026-08-20 13:29:16 +01:00
test-zzz.R
(v3.0.1.9117) Fix static test in test-zzz.R to run without testthat (R 3.0/4.0 tinytest)
2026-10-11 22:15:43 +02:00