langcog / childesr

R interface to childes-db
14 stars 5 forks source link

Issue with get_uttrances / Chinese #51

Closed smeylan closed 3 years ago

smeylan commented 3 years ago

(from a user)

Utt = get_utterances(language = "zho", role = c("target_child","child"), age = c(48, 72))

I always get the following message:

Using current database version: '2020.1'.
Error in switch_lang(call, inlined = , namespaced = , recursive = eval_bare(call,  :
smeylan commented 3 years ago

I am not able to replicate this on a fresh install on R 4.0.3 on Mac OS 10.16, but I think it might have to do with different versions of the dbplyr package (https://stackoverflow.com/questions/56840015/could-not-find-function-switch-lang).

To test that I asked the user to send us 1) the R version and OS version they are using 2) the output of sessionInfo()

It works for me as expected on R 4.0.3, Mac OS 10.16, with the following sessionInfo()

R version 4.0.3 (2020-10-10)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] childesr_0.2.1

loaded via a namespace (and not attached):
 [1] withr_2.3.0      assertthat_0.2.1 dbplyr_2.0.0     crayon_1.3.4     dplyr_1.0.2     
 [6] R6_2.5.0         lifecycle_0.2.0  jsonlite_1.7.1   DBI_1.1.0        magrittr_2.0.1  
[11] pillar_1.4.7     rlang_0.4.9      curl_4.3         blob_1.2.1       vctrs_0.3.5     
[16] generics_0.1.0   ellipsis_0.3.1   RMySQL_0.10.20   tools_4.0.3      glue_1.4.2      
[21] purrr_0.3.4      compiler_4.0.3   pkgconfig_2.0.3  tidyselect_1.1.0 tibble_3.0.4 
smeylan commented 3 years ago

User's reported environment:



This is the output of sessioninfo() that I got:

R version 3.4.3 (2017-11-30)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS  10.15.7

Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib

locale:
[1] it_IT.UTF-8/it_IT.UTF-8/it_IT.UTF-8/C/it_IT.UTF-8/it_IT.UTF-8

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

other attached packages:
[1] childesr_0.1.0 tidyr_0.8.3    dplyr_0.8.5  

loaded via a namespace (and not attached):
[1] Rcpp_1.0.1       dbplyr_1.2.2     crayon_1.3.4     assertthat_0.2.1
[5] R6_2.4.0         DBI_1.0.0        jsonlite_1.6     magrittr_1.5   
 [9] pillar_1.3.1     stringi_1.4.3    rlang_0.4.8      curl_3.3        
[13] rstudioapi_0.13  RMySQL_0.10.15   tools_3.4.3      glue_1.3.1     
[17] purrr_0.3.2      tinytex_0.11     rsconnect_0.8.5  xfun_0.5       
[21] compiler_3.4.3   pkgconfig_2.0.2  tidyselect_0.2.5 tibble_2.1.1 ```
smeylan commented 3 years ago

User issue fixed by reinstalling childesr