這可能是一個問題,但我不認爲我已經在Rstudio(0.99.486)中正確設置了lintr
。我在「首選項」>「代碼」>「診斷」中具有所有選項,並且已在項目的工作區中加載了lintr
。但是,當我運行診斷程序時,我在語法,賦值等方面沒有收到錯誤。有什麼我需要做以啓用所有默認的linters?在R中使用Lintr的問題
(請打消任何愚蠢的錯誤迄今爲止我所做的我。)
# Sample code; only warnings are for unknown symbol, unexpected
# tokens, and missing whitespace around binary operator
testing = function(test1, test2)
{
return paste(test, test1)
}
test.var = 1+2
是的,謝謝。我提供的示例代碼在那裏觸發了linting錯誤。 – mattpolicastro