A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/r-lib/lintr/issues/482 below:

object_usage_linter ignores library functions · Issue #482 · r-lib/lintr · GitHub

From https://github.com/REditorSupport/vscode-r-lsp/issues/36.

Suppose the following code is stored in test.R:

library(jsonlite)

read <- function(file, ...) {
  read_json(file, ...)
}

Then object_usage_linter seems to ignore library(jsonlite) and mark read_json as unknown which is annoying.

> lintr::lint("test.R")
/Users/ken/Workspaces/test/vscode-r/test/test.R:4:3: warning: no visible global function definition for 'read_json'
  read_json(file, ...)
  ^~~~~~~~~

assignUser, naupaka, matthiasgomolka, alex-gable, bersbersbers and 8 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4