Skip to content

Action does not work on ubuntu 24.04 image (R not pre-installed) #16

@elinscott

Description

@elinscott

My github test using this action has started failing upon the switch of ubuntu-latest from 22.04 to 24.04. The latter does not come with R pre-installed (see actions/runner-images#10636).

The specific error I encounter is as follows (for the full failed run see here)

Run # Dependency resolution
  # Dependency resolution
  cat("os-version=", sessionInfo()$running, "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE)
  cat("r-version=", if (grepl("development", rv <- R.Version()$version.string)) as.character(getRversion()) else rv, "\n", file = Sys.getenv("GITHUB_OUTPUT"), sep = "", append = TRUE)
  Error: Rscript: command not found

As a quick fix I can manually provide install-r: true as an input to this action, but long-term the logic of action.yaml should be updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions