Skip to content

[Dev] Pre-commit fails if R is not installed #46646

@WillAyd

Description

@WillAyd

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

I believe #46581 introduced a bug where if a developer does not have R installed on their system, the pre-commit check will fail with an exception like:

[INFO] Installing environment for local.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('Rscript', '--vanilla', '/tmp/tmp6h7jqkbh/script.R')
return code: 1
stdout:
    Executable `Rscript` not found

Component(s)

Developer Tools

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions