diff --git a/DESCRIPTION b/DESCRIPTION
index e42345af..252ff765 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,11 +1,11 @@
Package: AMR
-Version: 0.7.1.9067
-Date: 2019-08-28
+Version: 0.7.1.9068
+Date: 2019-08-30
Title: Antimicrobial Resistance Analysis
Authors@R: c(
person(role = c("aut", "cre"),
family = "Berends", given = c("Matthijs", "S."), email = "m.s.berends@umcg.nl", comment = c(ORCID = "0000-0001-7620-1800")),
- person(role = "aut",
+ person(role = c("aut", "ctb"),
family = "Luz", given = c("Christian", "F."), email = "c.f.luz@umcg.nl", comment = c(ORCID = "0000-0001-5809-5995")),
person(role = c("aut", "ths"),
family = "Friedrich", given = c("Alex", "W."), email = "alex.friedrich@umcg.nl", comment = c(ORCID = "0000-0003-4881-038X")),
diff --git a/LICENSE b/LICENSE
index e29e4408..4103c25d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -6,71 +6,39 @@ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
-Preamble
+A SUMMARY OF THIS LICENSE BY THE ORIGINAL AUTHORS OF THE AMR R PACKAGE
-The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
+This R package, with package name 'AMR':
+- May be used for commercial purposes
+- May be used for private purposes
+- May NOT be used for patent purposes
+- May be modified, although:
+ - Modifications MUST be released under the same license when distributing the package
+ - Changes made to the code MUST be documented
+- May be distributed, although:
+ - Source code MUST be made available when the package is distributed
+ - A copy of the license and copyright notice MUST be included with the package.
+- Comes with a LIMITATION of liability
+- Comes with NO warranty
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
+END OF THE SUMMARY
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and
-modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
+under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
- that is to say, a work containing the Program or a portion of it,
+that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
- the term "modification".) Each licensee is addressed as "you".
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
+covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
@@ -87,7 +55,7 @@ along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
- 2. You may modify your copy or copies of the Program or any portion
+2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
@@ -111,11 +79,11 @@ above, provided that you also meet all of these conditions:
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
-These requirements apply to the modified work as a whole. If
+These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
+sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
@@ -131,7 +99,7 @@ with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
- 3. You may copy and distribute the Program (or a work based on it,
+3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
@@ -153,10 +121,10 @@ Sections 1 and 2 above provided that you also do one of the following:
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
+making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
+control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
@@ -169,27 +137,27 @@ access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
+4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
+5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
- 6. Each time you redistribute the Program (or any work based on the
+6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
+these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
@@ -197,11 +165,11 @@ this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
- otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
+may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
@@ -216,7 +184,7 @@ It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
+implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
@@ -231,39 +199,39 @@ certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
+countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
+of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
-Each version is given a distinguishing version number. If the Program
+Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
+Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
+to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
+make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
@@ -272,9 +240,9 @@ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
diff --git a/NEWS.md b/NEWS.md
index b75b7874..28b26bb0 100755
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,4 +1,4 @@
-# AMR 0.7.1.9067
+# AMR 0.7.1.9068
### Breaking
* Determination of first isolates now **excludes** all 'unknown' microorganisms at default, i.e. microbial code `"UNKNOWN"`. They can be included with the new parameter `include_unknown`:
diff --git a/R/freq.R b/R/freq.R
index 104dc639..64f740fc 100755
--- a/R/freq.R
+++ b/R/freq.R
@@ -29,11 +29,22 @@ clean::freq
#' @export
#' @noRd
freq.mo <- function(x, ...) {
+ x_noNA <- x[!is.na(x)]
+ grams <- mo_gramstain(x_noNA, language = NULL)
freq.default(x = x, ...,
- .add_header = list(families = n_distinct(mo_family(x, language = NULL)),
- genera = n_distinct(mo_genus(x, language = NULL)),
- species = n_distinct(paste(mo_genus(x, language = NULL),
- mo_species(x, language = NULL)))))
+ .add_header = list(`Gram-negative` = paste0(format(sum(grams == "Gram-negative", na.rm = TRUE),
+ big.mark = ",",
+ decimal.mark = "."),
+ " (", percent(sum(grams == "Gram-negative", na.rm = TRUE) / length(grams), force_zero = TRUE),
+ " of total)"),
+ `Gram-positive` = paste0(format(sum(grams == "Gram-positive", na.rm = TRUE),
+ big.mark = ",",
+ decimal.mark = "."),
+ " (", percent(sum(grams == "Gram-positive", na.rm = TRUE) / length(grams), force_zero = TRUE),
+ " of total)"),
+ genera = n_distinct(mo_genus(x_noNA, language = NULL)),
+ species = n_distinct(paste(mo_genus(x_noNA, language = NULL),
+ mo_species(x_noNA, language = NULL)))))
}
#' @exportMethod freq.rsi
diff --git a/README.md b/README.md
index afef5516..9006a3f0 100755
--- a/README.md
+++ b/README.md
@@ -4,26 +4,26 @@
### Not a developer? Then please visit our website [https://msberends.gitlab.io/AMR](https://msberends.gitlab.io/AMR) to read about this package.
+
**It contains documentation about all of the included functions and also a comprehensive tutorial about how to conduct AMR analysis.**
## Development source
-*NOTE: the original source code is on GitLab (https://gitlab.com/msberends/AMR), so you can report a bug at https://gitlab.com/msberends/AMR/issues. There is a mirror repository on GitHub (https://github.com/msberends/AMR). As the mirror process is automated by GitLab, both repositories always contain the latest changes.*
+*NOTE: the original source code is on GitLab (https://gitlab.com/msberends/AMR). There is a mirror repository on GitHub (https://github.com/msberends/AMR). As the mirror process is automated by GitLab, both repositories always contain the latest changes.*
This is the **development source** of `AMR`, a free and open-source [R package](https://www.r-project.org) to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial properties by using evidence-based methods.
## Authors
-Matthijs S. Berends 1,2,a,
-Christian F. Luz 1,a,
-Erwin E.A. Hassing2,
-Corinna Glasner 1,b,
-Alex W. Friedrich 1,b,
-Bhanu N.M. Sinha 1,b
+Matthijs S. Berends1,2,
+Christian F. Luz1,
+Alex W. Friedrich1,
+Bhanu N.M. Sinha1,
+Casper J. Albers3,
+Corinna Glasner1
1 Department of Medical Microbiology, University of Groningen, University Medical Center Groningen, Groningen, the Netherlands - [rug.nl](http://www.rug.nl) [umcg.nl](http://www.umcg.nl)
2 Certe Medical Diagnostics & Advice, Groningen, the Netherlands - [certe.nl](http://www.certe.nl)
-a Thesis dissertant
-b Thesis advisor
+3 Heymans Institute for Psychological Research, University of Groningen, Groningen, the Netherlands - [rug.nl](http://www.rug.nl)
@@ -32,40 +32,7 @@ Bhanu N.M. Sinha
## How to get this package
-All stable versions of this package [are published on CRAN](https://CRAN.R-project.org/package=AMR), the official R network with a peer-reviewed submission process.
-
-### Install from CRAN
-[![CRAN_Badge](https://www.r-pkg.org/badges/version/AMR)](https://CRAN.R-project.org/package=AMR) [![CRAN_Downloads](https://cranlogs.r-pkg.org/badges/grand-total/AMR)](https://CRAN.R-project.org/package=AMR)
-
-(Note: Downloads measured only by cran.rstudio.com, this excludes e.g. the official [cran.r-project.org](https://cran.r-project.org/package=AMR))
-
-- Install using [RStudio](http://www.rstudio.com) (recommended):
- - Click on `Tools` and then `Install Packages...`
- - Type in `AMR` and press Install
-
-- Install in R directly:
- - `install.packages("AMR")`
-
-### Install from Zenodo
-[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1305355.svg)](https://doi.org/10.5281/zenodo.1305355)
-
-This package was also published on Zenodo (stable releases only): https://doi.org/10.5281/zenodo.1305355
-
-### Install from GitLab
-
-This is the latest **development version**. Although it may contain bugfixes and even new functions compared to the latest released version on CRAN, it is also subject to change and may be unstable or behave unexpectedly. Always consider this a beta version. All below 'badges' should be green:
-
-Development Test | Result | Reference
---- | :---: | ---
-All functions checked on Linux | [![pipeline status](https://gitlab.com/msberends/AMR/badges/master/pipeline.svg)](https://gitlab.com/msberends/AMR/commits/master) | GitLab CI [[ref 1]](https://gitlab.com/msberends/AMR)
-All functions checked on Windows | [![AppVeyor_Build](https://ci.appveyor.com/api/projects/status/gitlab/msberends/AMR?branch=master&svg=true)](https://ci.appveyor.com/project/msberends/amr-svxon) | Appveyor Systems Inc. [[ref 2]](https://ci.appveyor.com/project/msberends/amr-svxon)
-Percentage of syntax lines checked | [![Code_Coverage](https://codecov.io/gl/msberends/AMR/branch/master/graph/badge.svg)](https://codecov.io/gl/msberends/AMR) [![Code_Coverage](https://gitlab.com/msberends/AMR/badges/master/coverage.svg)](https://codecov.io/gl/msberends/AMR) | Codecov LLC [[ref 3]](https://codecov.io/gl/msberends/AMR)
-
-If so, try it with:
-```r
-install.packages("devtools")
-devtools::install_gitlab("msberends/AMR")
-```
+Please see [our website](https://msberends.gitlab.io/AMR/#get-this-package).
## Copyright
diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html
index 6c5db214..09384c51 100644
--- a/docs/LICENSE-text.html
+++ b/docs/LICENSE-text.html
@@ -78,7 +78,7 @@
AMR (for R)
- 0.7.1.9067
+ 0.7.1.9068
@@ -232,71 +232,39 @@ Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
-Preamble
+A SUMMARY OF THIS LICENSE BY THE ORIGINAL AUTHORS OF THE AMR R PACKAGE
-The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users. This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it. (Some other Free Software Foundation software is covered by
-the GNU Lesser General Public License instead.) You can apply it to
-your programs, too.
+This R package, with package name 'AMR':
+- May be used for commercial purposes
+- May be used for private purposes
+- May NOT be used for patent purposes
+- May be modified, although:
+ - Modifications MUST be released under the same license when distributing the package
+ - Changes made to the code MUST be documented
+- May be distributed, although:
+ - Source code MUST be made available when the package is distributed
+ - A copy of the license and copyright notice MUST be included with the package.
+- Comes with a LIMITATION of liability
+- Comes with NO warranty
- When we speak of free software, we are referring to freedom, not
-price. Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
+END OF THE SUMMARY
- To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
- For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have. You must make sure that they, too, receive or can get the
-source code. And you must show them these terms so they know their
-rights.
-
- We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
- Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
- Finally, any free program is threatened constantly by software
-patents. We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary. To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and
-modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License. The "Program", below,
+under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
- that is to say, a work containing the Program or a portion of it,
+that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
-language. (Hereinafter, translation is included without limitation in
- the term "modification".) Each licensee is addressed as "you".
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
+covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
@@ -313,7 +281,7 @@ along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
- 2. You may modify your copy or copies of the Program or any portion
+2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
@@ -337,11 +305,11 @@ above, provided that you also meet all of these conditions:
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
-These requirements apply to the modified work as a whole. If
+These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
+sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
@@ -357,7 +325,7 @@ with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
- 3. You may copy and distribute the Program (or a work based on it,
+3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
@@ -379,10 +347,10 @@ Sections 1 and 2 above provided that you also do one of the following:
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source
+making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
-control compilation and installation of the executable. However, as a
+control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
@@ -395,27 +363,27 @@ access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
- 4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt
+4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
- 5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
+5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
- 6. Each time you redistribute the Program (or any work based on the
+6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further
+these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
@@ -423,11 +391,11 @@ this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
- otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all. For example, if a patent
+may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
@@ -442,7 +410,7 @@ It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
-implemented by public license practices. Many people have made
+implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
@@ -457,39 +425,39 @@ certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
-countries not thus excluded. In such case, this License incorporates
+countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time. Such new versions will
+of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
-Each version is given a distinguishing version number. If the Program
+Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
-Software Foundation. If the Program does not specify a version number of
+Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
-to ask for permission. For software which is copyrighted by the Free
+to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this. Our decision will be guided by the two goals
+make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
@@ -498,9 +466,9 @@ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
- TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
- YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
- PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
diff --git a/docs/articles/index.html b/docs/articles/index.html
index 0fac2ef6..904fc51d 100644
--- a/docs/articles/index.html
+++ b/docs/articles/index.html
@@ -78,7 +78,7 @@
AMR (for R)
- 0.7.1.9067
+ 0.7.1.9068
diff --git a/docs/authors.html b/docs/authors.html
index f5ea91a9..f7c490d6 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -78,7 +78,7 @@
AMR (for R)
- 0.7.1.9067
+ 0.7.1.9068
@@ -230,7 +230,7 @@
- Christian F. Luz. Author.
+
Christian F. Luz. Author, contributor.
diff --git a/docs/extra.js b/docs/extra.js
index 3716aabf..1c4fecad 100644
--- a/docs/extra.js
+++ b/docs/extra.js
@@ -77,14 +77,17 @@ $( document ).ready(function() {
// doctoral titles of authors
function doct_tit(x) {
if (typeof(x) != "undefined") {
- x = x.replace("Alex", "Prof Dr Alex");
- x = x.replace("Bhanu", "Prof Dr Bhanu");
+ // authors
+ x = x.replace(/Author, maintainer/g, "Main developer");
+ x = x.replace(/Author, contributor/g, "Main contributor");
+ x = x.replace(/Author, thesis advisor/g, "Doctoral advisor");
+ x = x.replace("Alex", "Prof. Dr Alex");
+ x = x.replace("Bhanu", "Prof. Dr Bhanu");
+ x = x.replace("Casper", "Prof. Dr Casper");
x = x.replace("Corinna", "Dr Corinna");
- x = x.replace("Casper", "Prof Dr Casper");
+ // others
x = x.replace("Bart", "Dr Bart");
x = x.replace("Dennis", "Dr Dennis");
- x = x.replace(/Author, thesis advisor/g, "Doctoral advisor");
- x = x.replace(/Author(, maintainer)?[.]?[^s]/g, "");
}
return(x);
}
diff --git a/docs/index.html b/docs/index.html
index 9da4c525..985790b5 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -42,7 +42,7 @@
AMR (for R)
- 0.7.1.9067
+ 0.7.1.9068
@@ -194,7 +194,7 @@
What is AMR
(for R)?
AMR
is a free and open-source R package to simplify the analysis and prediction of Antimicrobial Resistance (AMR) and to work with microbial and antimicrobial properties by using evidence-based methods. Since its first public release in early 2018, this package has been downloaded over 20,000 times from more than 40 countries (source: CRAN logs, 2019).
After installing this package, R knows ~70,000 microorganisms (distinct microbial species) and ~450 antibiotics by name and code, and knows all about valid RSI and MIC values. It supports any data format, including WHONET/EARS-Net data.
-We created this package for both academic research and routine analysis at the Faculty of Medical Sciences of the University of Groningen, the Netherlands, and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG). This R package is actively maintained and is free software; you can freely use and distribute it for both personal and commercial (but not patent) purposes under the terms of the GNU General Public License version 2.0 (GPL-2), as published by the Free Software Foundation. Read the full license here.
+We created this package for both routine analysis and academic research (as part of our PhD theses) at the Faculty of Medical Sciences of the University of Groningen, the Netherlands, and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG). This R package is actively maintained and is free software (see Copyright).
Used to SPSS? Read our tutorial on how to import data from SPSS, SAS or Stata.
@@ -356,6 +356,32 @@
+
+
+Copyright
+
This R package is free, open-source software and licensed under the GNU General Public License v2.0 (GPL-2). In a nutshell, this means that this package:
+
+May be used for commercial purposes
+May be used for private purposes
+May not be used for patent purposes
+-
+
May be modified, although:
+
+- Modifications must be released under the same license when distributing the package
+- Changes made to the code must be documented
+
+
+-
+
May be distributed, although:
+
+- Source code must be made available when the package is distributed
+- A copy of the license and copyright notice must be included with the package.
+
+
+Comes with a LIMITATION of liability
+Comes with NO warranty
+
+
@@ -383,7 +409,7 @@
Matthijs S. Berends
Author, maintainer
-Christian F. Luz
Author
+Christian F. Luz
Author, contributor
Alex W. Friedrich
Author, thesis advisor
diff --git a/docs/news/index.html b/docs/news/index.html
index ca82086f..125fb75e 100644
--- a/docs/news/index.html
+++ b/docs/news/index.html
@@ -78,7 +78,7 @@
AMR (for R)
- 0.7.1.9067
+ 0.7.1.9068
@@ -225,9 +225,9 @@
-
+
diff --git a/index.md b/index.md
index 6f6996e7..341853c9 100644
--- a/index.md
+++ b/index.md
@@ -10,8 +10,7 @@
After installing this package, R knows [**~70,000 microorganisms**](./reference/microorganisms.html) (distinct microbial species) and [**~450 antibiotics**](./reference/antibiotics.html) by name and code, and knows all about valid RSI and MIC values. It supports any data format, including WHONET/EARS-Net data.
-We created this package for both academic research and routine analysis at the Faculty of Medical Sciences of the University of Groningen, the Netherlands, and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG).
-This R package is [actively maintained](./news) and is free software; you can freely use and distribute it for both personal and commercial (but **not** patent) purposes under the terms of the GNU General Public License version 2.0 (GPL-2), as published by the Free Software Foundation. Read the full license [here](./LICENSE-text.html).
+We created this package for both routine analysis and academic research (as part of our PhD theses) at the Faculty of Medical Sciences of the University of Groningen, the Netherlands, and the Medical Microbiology & Infection Prevention (MMBI) department of the University Medical Center Groningen (UMCG). This R package is [actively maintained](./news) and is free software (see [Copyright](#copyright)).
**Used to SPSS?** Read our [tutorial on how to import data from SPSS, SAS or Stata](./articles/SPSS.html).
@@ -153,3 +152,27 @@ The `AMR` package basically does four important things:
* Results of 40 antibiotics (each antibiotic in its own column) with a total ~40,000 antimicrobial results
* Real and genuine data
* The [`WHONET` data set](./reference/WHONET.html). This data set only contains fake data, but with the exact same structure as files exported by WHONET. Read more about WHONET [on its tutorial page](./articles/WHONET.html).
+
+### Copyright
+
+This R package is free, open-source software and licensed under the [GNU General Public License v2.0 (GPL-2)](./LICENSE-text.html). In a nutshell, this means that this package:
+
+- May be used for commercial purposes
+
+- May be used for private purposes
+
+- May **not** be used for patent purposes
+
+- May be modified, although:
+
+ - Modifications **must** be released under the same license when distributing the package
+ - Changes made to the code **must** be documented
+
+- May be distributed, although:
+
+ - Source code **must** be made available when the package is distributed
+ - A copy of the license and copyright notice **must** be included with the package.
+
+- Comes with a LIMITATION of liability
+
+- Comes with NO warranty
diff --git a/pkgdown/extra.js b/pkgdown/extra.js
index 3716aabf..1c4fecad 100644
--- a/pkgdown/extra.js
+++ b/pkgdown/extra.js
@@ -77,14 +77,17 @@ $( document ).ready(function() {
// doctoral titles of authors
function doct_tit(x) {
if (typeof(x) != "undefined") {
- x = x.replace("Alex", "Prof Dr Alex");
- x = x.replace("Bhanu", "Prof Dr Bhanu");
+ // authors
+ x = x.replace(/Author, maintainer/g, "Main developer");
+ x = x.replace(/Author, contributor/g, "Main contributor");
+ x = x.replace(/Author, thesis advisor/g, "Doctoral advisor");
+ x = x.replace("Alex", "Prof. Dr Alex");
+ x = x.replace("Bhanu", "Prof. Dr Bhanu");
+ x = x.replace("Casper", "Prof. Dr Casper");
x = x.replace("Corinna", "Dr Corinna");
- x = x.replace("Casper", "Prof Dr Casper");
+ // others
x = x.replace("Bart", "Dr Bart");
x = x.replace("Dennis", "Dr Dennis");
- x = x.replace(/Author, thesis advisor/g, "Doctoral advisor");
- x = x.replace(/Author(, maintainer)?[.]?[^s]/g, "");
}
return(x);
}
diff --git a/tests/testthat/test-freq.R b/tests/testthat/test-freq.R
index 6a82ca10..6e11087d 100755
--- a/tests/testthat/test-freq.R
+++ b/tests/testthat/test-freq.R
@@ -25,9 +25,13 @@ test_that("frequency table works", {
library(clean)
# mo
expect_true(is.freq(freq(example_isolates$mo)))
+ # for this to work, the output of mo_gramstain() is to be expected as follows:
+ expect_equal(mo_gramstain("B_ESCHR_COL"), "Gram-negative")
+ expect_equal(mo_gramstain("B_STPHY_AUR"), "Gram-positive")
+
# rsi
expect_true(is.freq(freq(example_isolates$AMX)))
library(dplyr)
- expect_true(is.freq(example_isolates %>% freq(mo)))
+ expect_true(is.freq(example_isolates %>% freq(AMX)))
})