Skip to content

[CI][R] Lint failure #45521

Closed
Closed

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

Activity

  1. kou commented on Feb 13, 2025

    @kou
    MemberAuthor

    @amoeba Could you fix this...?

  2. raulcd commented on Feb 13, 2025

    @raulcd
    Member

    This is related to the new version of lintr which makes cyclocomp not a required dependency anymore:
    https://github.com/r-lib/lintr/releases/tag/v3.2.0

  3. added a commit that references this issue on Feb 13, 2025
  4. added a commit that references this issue on Feb 16, 2025
  5. kou commented on Feb 16, 2025

    @kou
    MemberAuthor

    Issue resolved by pull request 45524
    #45524

  6. added this to the 20.0.0 milestone on Feb 16, 2025
  7. added a commit that references this issue on Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions