JBGruber / rwhatsapp

An R package for working with WhatsApp data 💬
94 stars 19 forks source link

Problems with rwa_read #29

Closed msulyok closed 2 years ago

msulyok commented 2 years ago

Hi! rwa_read gives this error (and two warnings). Tried it with several chats, even chats without emojis, but it is the same. I cannot figure it out unfortunately. Any idea?

chat <- rwa_read("wz.txt", verbose=FALSE) Warning: Unknown or uninitialised column: emoji. Warning: Unknown or uninitialised column: emoji. Error in split.default(lookup$emoji, lookup$id) : first argument must be a vector

Session Info:

R version 4.1.2 (2021-11-01) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.3 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=de_DE.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=de_DE.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=de_DE.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] rwhatsapp_0.2.4 tableone_0.13.0 randomForestSRC_3.0.0 ggfortify_0.4.14
[5] survival_3.2-13 survminer_0.4.9 ggpubr_0.4.0 mgcv_1.8-38
[9] nlme_3.1-152 scales_1.1.1 ggplot2_3.3.5 tidyr_1.1.4
[13] dplyr_1.0.7 haven_2.4.3 readr_2.1.1

loaded via a namespace (and not attached): [1] colorspace_2.0-2 ggsignif_0.6.3 ellipsis_0.3.2 class_7.3-19 rprojroot_2.0.2
[6] markdown_1.1 fs_1.5.2 gridtext_0.1.4 ggtext_0.1.1 rstudioapi_0.13
[11] proxy_0.4-26 farver_2.1.0 remotes_2.4.2 bit64_4.0.5 fansi_1.0.3
[16] xml2_1.3.3 splines_4.1.2 cachem_1.0.6 knitr_1.37 pkgload_1.2.4
[21] jsonlite_1.7.3 broom_0.7.11 km.ci_0.5-2 data.tree_1.0.0 DiagrammeR_1.0.8
[26] compiler_4.1.2 backports_1.4.1 assertthat_0.2.1 Matrix_1.3-4 fastmap_1.1.0
[31] survey_4.1-1 cli_3.2.0 visNetwork_2.1.0 htmltools_0.5.2 prettyunits_1.1.1 [36] tools_4.1.2 gtable_0.3.0 glue_1.6.2 Rcpp_1.0.8 carData_3.0-5
[41] vctrs_0.4.0 xfun_0.29 stringr_1.4.0 ps_1.6.0 brio_1.1.3
[46] testthat_3.1.2 lifecycle_1.0.1 devtools_2.4.3 rstatix_0.7.0 zoo_1.8-9
[51] vroom_1.5.7 hms_1.1.1 parallel_4.1.2 RColorBrewer_1.1-2 yaml_2.2.2
[56] curl_4.3.2 memoise_2.0.1 gridExtra_2.3 KMsurv_0.1-5 labelled_2.9.0
[61] stringi_1.7.6 desc_1.4.0 e1071_1.7-9 pkgbuild_1.3.1 rlang_1.0.2
[66] pkgconfig_2.0.3 evaluate_0.14 lattice_0.20-45 purrr_0.3.4 htmlwidgets_1.5.4 [71] labeling_0.4.2 bit_4.0.4 tidyselect_1.1.1 processx_3.5.2 magrittr_2.0.3
[76] R6_2.5.1 generics_0.1.1 DBI_1.1.2 pillar_1.7.0 withr_2.4.3
[81] abind_1.4-5 tibble_3.1.6 crayon_1.5.1 car_3.0-12 survMisc_0.5.5
[86] utf8_1.2.2 tzdb_0.2.0 rmarkdown_2.11 usethis_2.1.5 grid_4.1.2
[91] data.table_1.14.2 callr_3.7.0 forcats_0.5.1 digest_0.6.29 xtable_1.8-4
[96] munsell_0.5.0 mitools_2.4 sessioninfo_1.2.2

msulyok commented 2 years ago

Sorry, I have the solution now. It was the language. If anyone has similar problems I recommend to set the language to English.

JBGruber commented 2 years ago

Do you mean your locale? AFAIK the locale should not matter. So if you found a case where it does, it would be nice if you could share an example.