Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(purrrlyr)
  > 
  > test_check("purrrlyr")
  1. Error: dmap() returns a data frame (@test-dmap.R#4) -------------------------
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: expect_is(dmap(mtcars, mean), "data.frame") at testthat/test-dmap.R:4
  2: klass(object)
  3: paste(class(x), collapse = "/")
  4: dmap(mtcars, mean)
  5: as_function(.f, ...)
  6: purrr::as_mapper
  7: getExportedValue(pkg, name)
  8: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  2. Error: dmap() works with sliced data frames (@test-dmap.R#9) ----------------
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: dmap(df, mean) at testthat/test-dmap.R:9
  2: as_function(.f, ...)
  3: purrr::as_mapper
  4: getExportedValue(pkg, name)
  5: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  3. Error: dmap() works with no columns to map (@test-dmap.R#15) ----------------
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: mtcars["cyl"] %>% slice_rows("cyl") %>% dmap(mean) at testthat/test-dmap.R:15
  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: dmap(., mean)
  10: as_function(.f, ...)
  11: purrr::as_mapper
  12: getExportedValue(pkg, name)
  13: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  4. Error: dmap() recycles only vectors of length 1 (@test-dmap.R#20) -----------
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: expect_equal(dmap_at(mtcars, "cyl", mean)$cyl, rep(mean(mtcars$cyl), nrow(mtcars))) at testthat/test-dmap.R:20
  2: compare(object, expected, ...)
  3: dmap_at(mtcars, "cyl", mean)
  4: partial_dmap(.d, sel, .f, ...)
  5: dmap(subset, .f, ...)
  6: as_function(.f, ...)
  7: purrr::as_mapper
  8: getExportedValue(pkg, name)
  9: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  5. Error: conditional sliced mapping recycles within groups (@test-dmap.R#26) --
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: by_slice(df, dmap, mean, .collate = "rows") at testthat/test-dmap.R:26
  2: ..f(.d[[i]], ...)
  3: as_function(.f, ...)
  4: purrr::as_mapper
  5: getExportedValue(pkg, name)
  6: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  6. Error: output column is named according to .to (@test-rows.R#21) ------------
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: mtcars %>% slice_rows("cyl") %>% by_slice(~list(NULL), .to = "my_col", .labels = FALSE) at testthat/test-rows.R:21
  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: by_slice(., ~list(NULL), .to = "my_col", .labels = FALSE)
  10: as_rows_function(..f)
  11: as_function(f)
  12: purrr::as_mapper
  13: getExportedValue(pkg, name)
  14: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  7. Error: by_slice() works with slicers of different types (@test-rows.R#203) --
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: dmap_at(mtcars, "cyl", as.character) %>% slice_rows("cyl") at testthat/test-rows.R:203
  2: eval(lhs, parent, parent)
  3: eval(lhs, parent, parent)
  4: dmap_at(mtcars, "cyl", as.character)
  5: partial_dmap(.d, sel, .f, ...)
  6: dmap(subset, .f, ...)
  7: as_function(.f, ...)
  8: purrr::as_mapper
  9: getExportedValue(pkg, name)
  10: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  8. Error: by_row() creates indices with c++ style indexing (@test-rows.R#228) --
  'as_mapper' is not an exported object from 'namespace:purrr'
  1: mtcars[1:5, 1:2] %>% by_row(~.$cyl[1]) at testthat/test-rows.R:228
  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: by_row(., ~.$cyl[1])
  10: as_rows_function(..f)
  11: as_function(f)
  12: purrr::as_mapper
  13: getExportedValue(pkg, name)
  14: stop(gettextf("'%s' is not an exported object from 'namespace:%s'", name, getNamespaceName(ns)), 
         call. = FALSE, domain = NA)
  
  testthat results ================================================================
  OK: 69 SKIPPED: 0 FAILED: 8
  1. Error: dmap() returns a data frame (@test-dmap.R#4) 
  2. Error: dmap() works with sliced data frames (@test-dmap.R#9) 
  3. Error: dmap() works with no columns to map (@test-dmap.R#15) 
  4. Error: dmap() recycles only vectors of length 1 (@test-dmap.R#20) 
  5. Error: conditional sliced mapping recycles within groups (@test-dmap.R#26) 
  6. Error: output column is named according to .to (@test-rows.R#21) 
  7. Error: by_slice() works with slicers of different types (@test-rows.R#203) 
  8. Error: by_row() creates indices with c++ style indexing (@test-rows.R#228) 
  
  Error: testthat unit tests failed
  Execution halted