Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
每次我尝试使用 devtools 函数构建、检查或记录某个 R-package 文件夹时,它都会引发以下错误:
if (!is_loaded(pkg) || (is_loaded(pkg) && reload)) { 中的错误:需要 TRUE/FALSE 的缺失值
或 if (pkgname != intname)... ,分别用于构建。
在我添加一些额外的代码之前,它已经适用于那个特定的包,但删除它似乎没有帮助。这个错误是什么意思以及寻找解决方案的方法是什么?
这意味着您有一个隐藏字符,您没有看到附加到包的名称(昨天在使用记事本编辑描述文件后发生在我身上)。所以,试着找出它是什么并抹去它。并且(自我注意)不要再用记事本编辑 R 文件!:-) 只需使用 RStudio、Sublime 文本等打开它们。