-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (31 loc) · 916 Bytes
/
R_check.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: test-r
# Run this workflow manually to check R set-up
on: workflow_dispatch
jobs:
test-r:
name: Test R setup
runs-on: ubuntu-latest
env:
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: R available?
run: |
R --version
Rscript --version
- name: Create Renviron
run: |
mkdir tmplib
echo "R_LIBS_USER=tmplib" > .Renviron
Rscript -e 'message(Sys.getenv("R_LIBS_USER"))'
- name: Install R packages
run: Rscript -e 'install.packages("jsonlite")'
- name: Install cURL Headers
run: |
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev
- name: Install curl package
run: Rscript -e 'install.packages("curl")'