nevrome / wellspell.addin

R Package - Quick Spellcheck Addin for RStudio
MIT License
21 stars 3 forks source link

gramcheck() Error in rjson::fromJSON(x) : #36

Open rafavdz opened 1 year ago

rafavdz commented 1 year ago

Hi all,

This is a very useful package specially for nonative english spekers! Many thanks to the contributors!

I just installed the packages and dependencies as suggested.

The wellspell.addin:::gramcheck() functions works as expected. However, when I run the wellspell.addin:::gramcheck(), I got the language selector pop-up window but then it prints the following error:

Error in rjson::fromJSON(x) : CHAR() can only be applied to a 'CHARSXP', not a 'NULL'

Any ideas why I am not able to run it?

sessionInfo() R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale: [1] LC_COLLATE=English_United Kingdom.utf8 [2] LC_CTYPE=English_United Kingdom.utf8
[3] LC_MONETARY=English_United Kingdom.utf8 [4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8

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

other attached packages: [1] shiny_1.6.0

nevrome commented 1 year ago

Interesting - for me it still works. Which version of LanguageTool are you running? Can you check with LanguageToolR::lato_get_version()?

And which version of the rjson do you have installed?

Does this issue only arise with certain text samples, or always, no matter what you want to check?