qdap check_spelling Error in checkForRemoteErrors(val) : one node produced an error: arguments imply differing number of rows

qdap check_spelling Error in checkForRemoteErrors(val) : one node produced an error: arguments imply differing number of rows

我一直运行陷入错误

Error in checkForRemoteErrors(val) : 
  one node produced an error: arguments imply differing number of rows: 3, 0

尝试在 qdap 包中使用 check_spelling 时。提供的数字 3 和 0 与下面提供的数据相关,但这只是一个更大的拼写检查字符串的一小部分样本,当我将更大的字符串传递给它以进行拼写检查和用作字典时,行号会有所不同。当突然开始工作时,我偶尔会成功,但是当我尝试重复该过程时,我 运行 再次陷入同样的​​错误。

当我也使用 check_spelling_interactive() 函数时,我 运行 遇到同样的错误。

我的理解是,我想用作拼写检查和字典的词都应该在字符向量中。

我已经更新了 qdap 的版本。 运行 于 Windows 7 64,R Studio 版本 0.99.467,R 版本 3.2.1。

任何帮助将不胜感激,因为我正在为此脱发,而且我没有那么多多余的东西。

library(qdap)
spellcheckstring = "universal motor vlb"
mydictionary = c("brake", "starter", "shock", "pad", "kit", "bore", "toyota", "ford", "pump", "nissan", "gas", "alternator", "switch")

class(spellcheckstring) # character
class(mydictionary) # character

check_spelling(spellcheckstring, dictionary = mydictionary)

字典太小了,当它被拆分 (https://github.com/trinker/qdapTRUE) 时,没有可能匹配那个字母。使用 assume.first.correct=FALSE:

check_spelling(spellcheckstring, dictionary = mydictionary, assume.first.correct=FALSE)

2.2.5 版(开发版)会自动强制执行 assume.first.correct=FALSE 如果自定义词典没有至少一个以全部 26 个字母开头的单词。

获取latest release of qdap

if (!require("pacman")) install.packages("pacman")
pacman::p_load_gh(
    "trinker/qdapDictionaries",
    "trinker/qdapRegex",
    "trinker/qdapTools",
    "trinker/qdap"
)