Skip to content

[LINT_BUG]: box_mod_fun_exists_linter errors due to uninstalled packages #153

@TymekDev

Description

@TymekDev

box.linters version

0.10.5

Sample source code to lint

Make sure to have {here} not installed.

foo.R

box::use(
  ./bar[asdf]
)

bar.R

box::use(
  here[here],
)

#' @export
asdf <- here

Lint command used

lintr::lint(
  "./foo.R",
  linters = box.linters::box_mod_fun_exists_linter()
)

Lint result

Linters fails to run with the following error:

Error: Linter 'box.linters::box_mod_fun_exists_linter' failed in <snip>/foo.R: there is no package called ‘here’

Expected result

I would expect an error lint and/or a graceful handling of the missing package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions