You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
no visible global variables (object-usage-linter) is still a matter #1127
Thanks for reporting this. You can circumvent the issue by loading all packages before linting, but if the library call is in the same file as the function, we can do something about it.
Thanks for reporting this. You can circumvent the issue by loading all packages before linting, but if the library call is in the same file as the function, we can do something about it.
Yes, the library call is definitely in the same file as the function.
I don't understand what is circumvent the issue by loading all packages before linting,
does it mean that I fire the R process that runs the language server with those packages loaded?
like R --slave -e "source('loadingPackage.R'); rlanguageserver::run()"?
Implementation should be straight-forward once #239 is merged.
That PR provides the necessary functions to find all exported objects, which could then be passed to checkUsage() as known globals.
Activity
AshesITR commentedon May 8, 2022
Thanks for reporting this. You can circumvent the issue by loading all packages before linting, but if the library call is in the same file as the function, we can do something about it.
milanglacier commentedon May 8, 2022
Yes, the library call is definitely in the same file as the function.
I don't understand what is
circumvent the issue by loading all packages before linting,does it mean that I fire the R process that runs the language server with those packages loaded?
like
R --slave -e "source('loadingPackage.R'); rlanguageserver::run()"?AshesITR commentedon May 8, 2022
Yes, that should work.
AshesITR commentedon May 9, 2022
Implementation should be straight-forward once #239 is merged.
That PR provides the necessary functions to find all exported objects, which could then be passed to
checkUsage()as known globals.