Running ‘testthat.R’ [11s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright (C) 2013 - 2017  Metrum Research Group, LLC
  > #
  > # This file is part of mrgsolve.
  > #
  > # mrgsolve is free software: you can redistribute it and/or modify it
  > # under the terms of the GNU General Public License as published by
  > # the Free Software Foundation, either version 2 of the License, or
  > # (at your option) any later version.
  > #
  > # mrgsolve is distributed in the hope that it will be useful, but
  > # WITHOUT ANY WARRANTY; without even the implied warranty of
  > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  > # GNU General Public License for more details.
  > #
  > # You should have received a copy of the GNU General Public License
  > # along with mrgsolve.  If not, see <http://www.gnu.org/licenses/>.
  > 
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(magrittr)
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  > library(mrgsolve)
  > 
  > test_check("mrgsolve", reporter="summary")
  test-annot: ..................................................
  test-as_data_set: ....
  test-as_list_mrgmod: ......................................
  test-cache: ...
  test-carry-out: ..........
  test-carry_out: ......
  test-data_set: ...................
  test-deslist: ...........
  test-dplyr-generics: ....1.............
  test-env: ....................
  test-ev: ..................................2........
  test-ev_assign: ...
  test-ev_days: .......
  test-evid4: ..
  test-fixed-cmtn: ...
  test-data_set: .3
  test-infusion: ..4........5
  test-inventory-too: ........
  test-inventory: .......
  test-iv-po: ......
  test-knobs: .....
  test-matlist: ...............
  test-matrix: .....
  test-modspec: ..................................
  test-mrgindata: ..........................
  test-mrgsim: .............6........7...............
  test-nmxml: ...........................................
  test-obsonly-obsaug: .........
  test-opts: ..
  test-rcpp_globals: .....
  test-ev: ..
  test-records: ..
  test-relabel: ........
  test-rename: .......
  test-rng: ...
  test-tad: .......
  test-update: ....................................
  test-utils: ............................
  
  ══ Failed ══════════════════════════════════════════════════════════════════════
  ── 1. Error: Pipe to filter (@test-dplyr-generics.R#44)  ───────────────────────
  no applicable method for 'filter_' applied to an object of class "mrgsims"
  1: out %>% filter(time <= 10) at testthat/test-dplyr-generics.R:44
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: filter(., time <= 10)
  10: filter.default(., time <= 10)
  11: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ── 2. Error: filter an ev object (@test-ev.R#135)  ─────────────────────────────
  no applicable method for 'filter_' applied to an object of class "ev"
  1: filter(e, time > 100) %>% as.data.frame() at testthat/test-ev.R:135
  2: eval(lhs, parent, parent)
  3: eval(lhs, parent, parent)
  4: filter(e, time > 100)
  5: filter.default(e, time > 100)
  6: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ── 3. Error: data set with idata (@test-idata_set.R#40)  ───────────────────────
  no applicable method for 'filter_' applied to an object of class "mrgsims"
  1: mrgsim(mod, data = data) %>% filter(time == 10) at testthat/test-idata_set.R:40
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: filter(., time == 10)
  10: filter.default(., time == 10)
  11: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ── 4. Error: Infusion with large rate and small amount (@test-infusion.R#38)  ──
  no applicable method for 'filter_' applied to an object of class "mrgsims"
  1: out %>% filter(time > 0) at testthat/test-infusion.R:38
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: filter(., time > 0)
  10: filter.default(., time > 0)
  11: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ── 5. Error: Infusion executes with ss flag and ii==dur (@test-infusion.R#114)  
  no applicable method for 'filter_' applied to an object of class "mrgsims"
  1: mod %>% Req(CP) %>% obsonly %>% ev(amt = 100, rate = 100, ii = 1, addl = 10, ss = 1) %>% 
         mrgsim(end = 10, digits = 5) %>% filter(time > 0) at testthat/test-infusion.R:114
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: filter(., time > 0)
  10: filter.default(., time > 0)
  11: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ── 6. Error: mrgsim with data and idata (@test-mrgsim.R#99)  ───────────────────
  no applicable method for 'filter_' applied to an object of class "mrgsims"
  1: filter(out, time == 12) at testthat/test-mrgsim.R:99
  2: filter.default(out, time == 12)
  3: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ── 7. Error: mrgsim with data (@test-mrgsim.R#133)  ────────────────────────────
  no applicable method for 'filter_' applied to an object of class "mrgsims"
  1: filter(out, time == 12) at testthat/test-mrgsim.R:133
  2: filter.default(out, time == 12)
  3: filter_(.data, .dots = compat_as_lazy_dots(...))
  
  ══ DONE ════════════════════════════════════════════════════════════════════════
  Error: Test failures
  Execution halted