Commit 2d201f5 1 parent f42d75f commit 2d201f5 Copy full SHA for 2d201f5
File tree 1 file changed +15
-4
lines changed
1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -21,11 +21,19 @@ jobs:
21
21
steps :
22
22
- uses : actions/checkout@v2
23
23
24
- # Restore R dependencies cache
24
+ # Create directories for R libraries if not already present
25
+ - name : Create R Library Paths
26
+ run : |
27
+ mkdir -p /github/home/R/x86_64-pc-linux-gnu-library/4.4
28
+ mkdir -p renv/library
29
+
30
+ # Restore cache for R dependencies
25
31
- name : Restore R Dependencies Cache
26
32
uses : actions/cache@v4
27
33
with :
28
- path : /github/home/R/x86_64-pc-linux-gnu-library/4.4
34
+ path : |
35
+ /github/home/R/x86_64-pc-linux-gnu-library/4.4
36
+ renv/library
29
37
key : ${{ runner.os }}-r-libs-${{ hashFiles('DESCRIPTION') }}
30
38
restore-keys : |
31
39
${{ runner.os }}-r-libs-
41
49
run : devtools::test(stop_on_failure = TRUE)
42
50
shell : Rscript {0}
43
51
52
+ # Save R dependencies to cache
44
53
- name : Save R Dependencies Cache
45
54
uses : actions/cache@v4
46
55
with :
47
- path : /github/home/R/x86_64-pc-linux-gnu-library/4.4
48
- key : ${{ runner.os }}-r-libs-${{ hashFiles('DESCRIPTION') }}
56
+ path : |
57
+ /github/home/R/x86_64-pc-linux-gnu-library/4.4
58
+ renv/library
59
+ key : ${{ runner.os }}-r-libs-${{ hashFiles('DESCRIPTION') }}
You can’t perform that action at this time.
0 commit comments