我正在上Rstudio項目和一些有線已成爲發生輸出錯誤到控制檯:每次我寫東西到一個腳本Rstudio自動寫入以下錯誤到控制檯:Rstudio在編輯腳本
Error in rep.int(vectorNames[i], length(vector[[i]])) :
unimplemented type 'NULL' in 'rep3'
並且光標下方出現一個標籤:「R代碼執行錯誤」。 Appart form this visual錯誤,一切工作正常。有沒有人有同樣的問題?
我正在上Rstudio項目和一些有線已成爲發生輸出錯誤到控制檯:每次我寫東西到一個腳本Rstudio自動寫入以下錯誤到控制檯:Rstudio在編輯腳本
Error in rep.int(vectorNames[i], length(vector[[i]])) :
unimplemented type 'NULL' in 'rep3'
並且光標下方出現一個標籤:「R代碼執行錯誤」。 Appart form this visual錯誤,一切工作正常。有沒有人有同樣的問題?
我剛剛經歷過這個問題。在我看來,我想它必須與包中的NAMESPACE文件相關。
我可以在R Studio support site上看到關於此主題的討論。從源頭
引用上面提到的:
There are two times when we run the code that could be emitting this error:
- When attempting to retrieve completions from the package's NAMESPACE file,
- When attempting to retrieve completions for native routines (e.g. for within a '.Call()' call).
Can you recall if you had been editing the package's NAMESPACE file before seeing this error? Alternatively, have you been using 'devtools::load_all()' or other similar machinery?
,並明確回答你的問題: 是的!我有同樣的問題!(該死!:))
以後編輯:
我已經通過關閉該項目,並再次重新打開它擺脫了問題。
有沒有機會提供更多信息?如果可能的話,一個可重複的例子(使用代碼+使RStudio發出這些錯誤的動作)將會非常有用。 –