KWB-R / kwb.fakin

Functions Used in Our FAKIN Project
http://kwb-r.github.io/kwb.fakin
MIT License
1 stars 0 forks source link

analyse_scripts.Rmd: "drop0trailing" matched by multiple actual arguments #8

Open mrustl opened 6 years ago

mrustl commented 6 years ago

line 105 in vignette analyse_scripts.Rmd (https://github.com/KWB-R/kwb.fakin/blob/master/vignettes/analyse_scripts.Rmd) throws WARNING:

Classes ‘tbl’, ‘tbl_df’ and 'data.frame': 73 obs. of 18 variables: $ path : 'fs_path' chr "C:/Users/mrustl.KWB/Documents/R/win-library/3.5/kwb.fakin/extdata/scripts/create_treemaps.R" "C:/Users/mrustl.KWB/Documents/R/win-library/3.5/kwb.fakin/extdata/scripts/extract_properties.R" "C:/Users/mrustl.KWB/Documents/R/win-library/3.5/kwb.fakin/extdata/scripts/test_networkD3.R" "C:/Users/mrustl.KWB/Documents/R/win-library/3.5/kwb.fakin/extdata/scripts/test_package.R" ... $ type : Factor w/ 8 levels "any","block_device",..: 7 7 7 7 7 7 7 7 7 7 ... $ size : Error in format.default(res, scientific = scientific, digits = digits, : formal argument "drop0trailing" matched by multiple actual arguments

Traceback:

  1. | format(res, scientific = scientific, digits = digits, drop0trailing = TRUE, ...)
  2. | format.fs_bytes(x, trim = TRUE, drop0trailing = TRUE, ...)
  3. | format(x, trim = TRUE, drop0trailing = TRUE, ...)
  4. | format.fun(x)
  5. paste(format.fun(x), collapse = " ")
  6. nchar(x, type = "w")
  7. | maybe_truncate(paste(format.fun(x), collapse = " "), S = "")
  8. | formObj(if (ile >= 1) object[seq_len(ile)] else if (v.len > 0) object)
  9. | cat(if (give.head) paste0(str1, " "), formObj(if (ile >= 1) object[seq_len(ile)] else if (v.len > 0) object), if (le > v.len) " ...", "\n", sep = "")
  10. | str.default(obj, ...)
  11. | str(obj, ...)
  12. | (function (...) str(obj, ...))(max.level = quote(NA), vec.len = quote(4L), digits.d = quote(3L), nchar.max = quote(128), give.attr = quote(TRUE), drop.deparse.attr = quote(TRUE), give.head = quote(TRUE), width = quote(101L), envir = quote(NULL), ...
  13. | do.call(function(...) str(obj, ...), c(aList, list(...)), quote = TRUE)
  14. | strSub(object[[i]], give.length = give.length, nest.lev = nest.lev + 1, indent.str = paste(indent.str, ".."))
  15. | str.default(file_info_scripts, give.length = FALSE)
  16. | NextMethod("str", give.length = FALSE,
  17. | str.data.frame(file_info_scripts)
  18. | str(file_info_scripts)

I think it is due to the content of the columns size?

file_info_scripts$size 3.36K 6.22K 2.07K 1.28K 1.23K 1.51K 6.56K 1.64K 223 212 240 206 222 216 237 232 217 214 224 200 214 233 239 155 232 243 170 204 222 216 213 214 202 188 208 210 234 233 258 210 213 211 141 222 220 145 147 147 218 218 605 222 214 224 601 233 224 212 214 224 200 218 216 225 224 204 204 227 244 221 217 2.16K 62

Session info:

sessioninfo::session_info()

setting value version R version 3.5.0 (2018-04-23) os Windows 7 x64 SP 1 system i386, mingw32 ui RStudio language (EN) collate English_United Kingdom.1252 tz Europe/Berlin date 2018-09-27

─ Packages package * version date source clisymbols 1.2.0 2017-05-21 CRAN (R 3.5.1) commonmark 1.5 2018-04-28 CRAN (R 3.5.1) curl 3.2 2018-03-28 CRAN (R 3.5.0) hms 0.4.2 2018-03-10 CRAN (R 3.5.1) jsonld 2.0 2018-05-03 CRAN (R 3.5.1) jsonlite 1.5 2017-06-01 CRAN (R 3.5.0) kwb.utils 0.3.0.9000 2018-09-27 Github (KWB-R/kwb.utils@00cc671) magrittr 1.5 2014-11-22 CRAN (R 3.5.0) pillar 1.2.3 2018-05-25 CRAN (R 3.5.0) pkgconfig 2.0.1 2017-03-21 CRAN (R 3.5.0) R6 2.2.2 2017-06-17 CRAN (R 3.5.0) Rcpp 0.12.18 2018-07-23 CRAN (R 3.5.1) rdflib 0.1.0 2018-03-09 CRAN (R 3.5.1) readr 1.1.1 2017-05-16 CRAN (R 3.5.1) redland 1.0.17-10 2018-07-20 CRAN (R 3.5.1) rlang 0.2.2 2018-08-16 CRAN (R 3.5.1) roxygen2 6.0.1 2017-02-06 CRAN (R 3.5.1) sessioninfo 1.0.0 2017-06-21 CRAN (R 3.5.1) stringi 1.1.7 2018-03-12 CRAN (R 3.5.0) stringr 1.3.1 2018-05-10 CRAN (R 3.5.0) tibble 1.4.2 2018-01-22 CRAN (R 3.5.0) V8 1.5 2017-04-25 CRAN (R 3.5.1) withr 2.1.2 2018-03-15 CRAN (R 3.5.0) xml2 1.2.0 2018-01-24 CRAN (R 3.5.1) yaml 2.2.0 2018-07-25 CRAN (R 3.5.1)