unable to find an inherited method for function ‘describe’ for signature ‘"kRp.tagged"’
Closed this issue · 8 comments
Followed the instruction to install the package from github when I run:
wordcountaddin:::text_stats()
I get the following error from an empty session:
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function ‘describe’ for signature ‘"kRp.tagged"’
This sounds like it is related to the koRpus pkg not being installed.
Could you please update me with a minimal reproducible example (AKA a reprex)? If you've never heard of a reprex before, start by reading https://www.tidyverse.org/help/#reprex.
I'm not sure what else to add for a reprex here. I installed the package via github and then ran this line:
wordcountaddin:::text_stats()
If I run
showMethods("describe")
I get the following list
Function: describe (package koRpus)
obj="kRp.hyphen"
obj="kRp.taggedText"
which suggests that describe is expecting something with signature kRp.taggedText but is seeing something with signature kRp.tagged instead.
Let me know what else would be useful to debug this.
Your session info would be a good start
Great thanks. Here's the session info:
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] koRpus.lang.en_0.1-2 koRpus_0.10-2 data.table_1.11.4 RevoUtils_11.0.1 RevoUtilsMath_11.0.0
loaded via a namespace (and not attached):
[1] Rcpp_0.12.18 magrittr_1.5 rlang_0.3.1 stringi_1.2.4 sylly_0.1-5
[6] rstudioapi_0.7 fs_1.2.6 tools_3.5.1 sylly.en_0.1-3 purrr_0.2.5
[11] yaml_2.2.0 compiler_3.5.1 wordcountaddin_0.3.0.9000
Thanks, looks like you're running a slightly old version of R, and some of your packages are not the current versions. That's important for this pkg because there was a big change to the koRpus pkg recently, and we had to update this pkg to work with that. Could you please update your R version, and all your packages, and let me know if that solves the problem?
These are the versions of of koRpus etc. that we need here: koRpus.lang.en_0.1-2, koRpus_0.11-5, sylly_0.1-5
OK that makes sense. I use Microsoft's R open distribution of R which has only released up to version 3.5.1 https://mran.microsoft.com/, so I will check back in once they release 3.5.2.
If you are using MRO, then the solution in #21 will work for you.
Perfect, that worked. Thank you