mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Merge pull request #2662 from pre-commit/r-default-gha
r is installed by default on GHA
This commit is contained in:
commit
092e9a50ae
3 changed files with 1 additions and 18 deletions
4
.github/actions/pre-test/action.yml
vendored
4
.github/actions/pre-test/action.yml
vendored
|
|
@ -20,7 +20,6 @@ runs:
|
||||||
echo 'C:\Strawberry\c\bin' >> "$GITHUB_PATH"
|
echo 'C:\Strawberry\c\bin' >> "$GITHUB_PATH"
|
||||||
|
|
||||||
testing/get-dart.sh
|
testing/get-dart.sh
|
||||||
pwsh testing/get-r.ps1
|
|
||||||
- name: setup (linux)
|
- name: setup (linux)
|
||||||
shell: bash
|
shell: bash
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
|
@ -31,8 +30,7 @@ runs:
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
lua5.3 \
|
lua5.3 \
|
||||||
liblua5.3-dev \
|
liblua5.3-dev \
|
||||||
luarocks \
|
luarocks
|
||||||
r-base
|
|
||||||
|
|
||||||
testing/get-coursier.sh
|
testing/get-coursier.sh
|
||||||
testing/get-dart.sh
|
testing/get-dart.sh
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
$dir = $Env:Temp
|
|
||||||
$urlR = "https://cran.r-project.org/bin/windows/base/old/4.0.4/R-4.0.4-win.exe"
|
|
||||||
$outputR = "$dir\R-win.exe"
|
|
||||||
$wcR = New-Object System.Net.WebClient
|
|
||||||
$wcR.DownloadFile($urlR, $outputR)
|
|
||||||
Start-Process -FilePath $outputR -ArgumentList "/S /v/qn"
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
sudo apt install r-base
|
|
||||||
# create empty folder for user library.
|
|
||||||
# necessary for non-root users who have
|
|
||||||
# never installed an R package before.
|
|
||||||
# Alternatively, we require the renv
|
|
||||||
# package to be installed already, then we can
|
|
||||||
# omit that.
|
|
||||||
Rscript -e 'dir.create(Sys.getenv("R_LIBS_USER"), recursive = TRUE)'
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue