benmarwick / wordcountaddin

Word counts and readability statistics in R markdown documents
Other
337 stars 33 forks source link

Get an error message on Microsoft Open R 3.5.1 #21

Closed atreyagagan closed 5 years ago

atreyagagan commented 5 years ago

I'm currently using Microsoft Open R on Ubuntu 18.04

I installed the package with: devtools::install_github("benmarwick/wordcountaddin", type = "source", dependencies = TRUE)

When I press Ctrl+W, I get this error message:

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘describe’ for signature ‘"kRp.tagged"’

It used to work on base R/RStudio, but I get this error ever since I moved to Microsoft Open R. Any help would be appreciated, thank you!

benmarwick commented 5 years ago

My guess is that MRO is installing the dependencies from MRAN, and these might be set to an earlier date and thus earlier pkg versions than what we need for this pkg to work.

There was a big reorganisation of the koRpus package recently, so if you're not getting the latest version of that, and its dependencies, then I can't really help.

Can you give more information about what the version numbers are for R and the other packages you are using?

Also, please tell me what you are expecting CTRL + W to do with this package?

atreyagagan commented 5 years ago

Thank you for your response! It was indeed the koRpus package. When I re-installed korPus and specified CRAN as the mirror, the error message is gone and it works like before (I use CTRL+W as the keyboard shortcut that spits out the wordcountaddin output... although I forgot if I created this shortcut myself or if it comes as default with the package?).

I'm leaving this issue here in case anyone using Microsoft R Open runs into the same problem. (I'd also suggest editing your RProfile so that CRAN is the default mirror when installing packages).

benmarwick commented 5 years ago

Sounds good, thanks for following up!