atom-ide-r
atom-ide-r copied to clipboard
lint warnings "no visible global function definition"
The warning appears on all function calls
deg2rad <- function(deg) {
(deg * pi) / (180)
}
lat_1 <- deg2rad(50)
It is a known problem of lintr https://github.com/jimhester/lintr/issues/27
As a workaround, you could disable the object lintrr.
How can I do that?
You could either use a .lintr file to disable the object linter, or specify the following setting in .Rprofile
setHook(
packageEvent("languageserver", "onLoad"),
function(...) {
options(languageserver.default_linters = lintr::with_defaults(
object_usage_linter = NULL
))
}
)