File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414jobs :
1515 build :
1616 runs-on : ubuntu-latest
17- container : rocker/r2u:latest
1817
1918 steps :
2019 - uses : actions/checkout@v4
2120
22- - uses : actions/cache@v4
23- name : Cache R packages
24- id : cache-r-packages
21+ - uses : r-lib/actions/setup-r@v2
2522 with :
26- path : |
27- netdiffuseR_*
28- key : ${{ runner.os }}-netdiffuseR-pkg
23+ use-public-rspm : true
2924
30- - name : Install dependencies
31- run : |
32- install2.r igraph networkDynamic statnet Rcpp MatchIt remotes \
33- SparseM viridisLite RcppArmadillo rmarkdown knitr microbenchmark
25+ - uses : r-lib/actions/setup-r-dependencies@v2
26+ with :
27+ packages : |
28+ any::igraph
29+ any::networkDynamic
30+ any::statnet
31+ any::Rcpp
32+ any::MatchIt
33+ any::remotes
34+ any::SparseM
35+ any::viridisLite
36+ any::RcppArmadillo
37+ any::rmarkdown
38+ any::knitr
39+ any::microbenchmark
3440
3541 - name : Install netdiffuseR
3642 run : |
37- installGithub.r USCCANA/netdiffuseR
43+ Rscript -e 'remotes::install_github(" USCCANA/netdiffuseR")'
3844
3945 - name : Install Quarto
4046 uses : quarto-dev/quarto-actions/setup@v2
You can’t perform that action at this time.
0 commit comments