Skip to content

[CI][R] Lint failure #45521

@kou

Description

@kou

Describe the bug, including details regarding any error messages, version, and platform.

It's caused by #44989 merge. Sorry.

https://github.com/apache/arrow/actions/runs/13299364571/job/37137873622#step:8:6733

> lintr::lint_package('/arrow/r')
Error in `lint()`:
! Linter `linter()` failed in '/arrow/r/data-raw/docgen.R':
Caused by error in `linter_fun()`:
! Cyclocomp complexity is computed using `cyclocomp::cyclocomp()`.
ℹ Please install the needed cyclocomp package.
Backtrace:
     ▆
  1. └─lintr::lint_package("/arrow/r")
  2.   └─lintr::lint_dir(...)
  3.     └─base::lapply(...)
  4.       └─lintr (local) FUN(X[[i]], ...)
  5.         └─lintr::lint(file, ..., parse_settings = FALSE, exclusions = exclusions)
  6.           ├─base::withCallingHandlers(...)
  7.           └─lintr:::get_lints(...)
  8.             ├─lintr:::flatten_lints(linter_fun(expr))
  9.             │ └─lintr:::flatten_list(x, class = "lint")
 10.             │   └─lintr (local) assign_item(x)
 11.             └─lintr (local) linter_fun(expr)
 12.               └─cli::cli_abort(...)
 13.                 └─rlang::abort(...)
Warning message:
Found unused settings in config file (.lintr): unused_settings 

Component(s)

Continuous Integration, R

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions