actions icon indicating copy to clipboard operation
actions copied to clipboard

setup-r brew unlink r only if installed v2

Open the-mad-statter opened this issue 3 weeks ago • 0 comments

The current version of setup-r generates an error on macos-latest due to an attempt to brew unlink r when R is not already installed via Homebrew as discussed in #864 . A reprex of this issue is available here.

This patch makes use of brew info --json r and attempts to parse the currently brew-installed R version. If a version is found, we proceed with brew unlink r and skip if no version is found.

Tests of the patch for when R is and is not installed via Homebrew are available here and here respectively.

the-mad-statter avatar Jun 24 '24 15:06 the-mad-statter