* using log directory 'd:/Rcompile/CRANpkg/local/3.5/collateral.Rcheck' * using R version 3.5.3 (2019-03-11) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'collateral/DESCRIPTION' ... OK * this is package 'collateral' version '0.4.2' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'collateral' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [3s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'collateral-Ex.R' failed The error most likely occurred in: > ### Name: has > ### Title: Filter elements that contain a type of side effect. > ### Aliases: has has_results has_errors has_warnings has_messages > ### has_output > > ### ** Examples > > > library(magrittr) > > list("a", 10, 100) %>% map_safely(log) %>% has_errors() [1] TRUE FALSE FALSE > list(5, -12, 103) %>% map_quietly(log) %>% has_warnings() [1] FALSE TRUE FALSE > > suppressMessages(library(tidyverse)) > > # if you're working with list-columns, the tally functions are useful > # in conjunction with dplyr::summarise() > mtcars %>% + rownames_to_column(var = "car") %>% + as_data_frame() %>% + select(car, cyl, disp, wt) %>% + # spike some rows in cyl == 4 to make them fail + mutate(wt = dplyr::case_when( + wt < 2 ~ -wt, + TRUE ~ wt)) %>% + # nest and do some operations quietly() + nest(-cyl) %>% + mutate(qlog = map_quietly(data, ~ log(.$wt))) %>% + filter(has_warnings(qlog)) Warning: All elements of `...` must be named. Did you want `data = c(car, disp, wt)`? Error: Input must be a vector, not a `quietly_mapped` object. Backtrace: x 1. +-(function (x, ...) ... 2. +-tibble:::print.tbl(x) 3. | +-cli::cat_line(format(x, ..., n = n, width = width, n_extra = n_extra)) 4. | | \-base::paste0(..., collapse = "\n") 5. | +-base::format(x, ..., n = n, width = width, n_extra = n_extra) 6. | \-tibble:::format.tbl(x, ..., n = n, width = width, n_extra = n_extra) 7. | \-tibble::trunc_mat(x, n = n, width = width, n_extra = n_extra) 8. | +-base::as.data.frame(head(x, n)) 9. | +-utils::head(x, n) 10. | \-utils:::head.data.frame(x, n) 11. | +-x[seq_len(n), , drop = FALSE] 12. | \-tibble:::`[.tbl_df`(x, seq_len(n), , drop = FALSE) 13. | \-tibble:::tbl_subset_row(xo, i = i, i_arg) 14. | \-base::lapply(unclass(x), vec_slice, i = i) 15. | \-vctrs:::FUN(X[[i]], ...) 16. \-vctrs:::stop_scalar_type(...) 17. \-vctrs:::stop_vctrs(msg, "vctrs_error_scalar_type", actual = x) Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [10s] WARNING Error in re-building vignettes: ... Quitting from lines 221-229 (collateral.Rmd) Error: processing vignette 'collateral.Rmd' failed with diagnostics: Input must be a vector, not a `safely_mapped` object. Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR, 1 WARNING