1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 16:42:10 +02:00

add tests using testthat

This commit is contained in:
2018-03-27 17:43:42 +02:00
parent c26839b08e
commit 6f7730dcaa
19 changed files with 231 additions and 17 deletions

View File

@ -9,7 +9,8 @@
clipboard_import(sep = "\\t", header = TRUE, dec = ".", na = c("", "NA",
"NULL"), startrow = 1, as_vector = TRUE)
clipboard_export(x, sep = "\\t", dec = ".", na = "", header = TRUE)
clipboard_export(x, sep = "\\t", dec = ".", na = "", header = TRUE,
info = TRUE)
}
\arguments{
\item{sep}{the field separator character. Values on each line of the
@ -33,6 +34,8 @@ clipboard_export(x, sep = "\\t", dec = ".", na = "", header = TRUE)
\item{x}{the object to be written, preferably a matrix or data frame.
If not, it is attempted to coerce \code{x} to a data frame.}
\item{info}{print info about copying}
}
\value{
data.frame

View File

@ -59,8 +59,7 @@ septic_patients \%>\%
first_isolate(.,
"date",
"patient_id",
"genus",
"species",
"bactid",
col_specimen = NA,
col_icu = NA)) \%>\%
# filter on first E. coli isolates