File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030
3131 - name : Install R packages
3232 run : Rscript install_pkgs.R
33+
3334 - name : Test with pytest (full)
3435 if : github.ref == 'refs/heads/master'
3536 run : |
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ RUN apt-get update && \
5252
5353
5454RUN poetry config virtualenvs.in-project true && \
55- poetry lock && \
5655 poetry install
5756
5857EXPOSE 5000
Original file line number Diff line number Diff line change @@ -14,23 +14,23 @@ toml_data <- RcppTOML::parseTOML("pyproject.toml")
1414# Extract dependencies
1515deps <- toml_data $ tool $ quail $ `r-dependencies`
1616
17+ if (! requireNamespace(" remotes" , quietly = TRUE )) {
18+ install.packages(" remotes" , repos = " https://cloud.r-project.org" )
19+ }
1720
18- # Install devtools
19- install.packages(" devtools" , dependencies = TRUE )
20- library(devtools )
21-
22- # Install packages with versions
21+ # Install packages with versions using remotes
2322for (pkg in names(deps )) {
2423 ver <- deps [[pkg ]]
2524 if (! (pkg %in% rownames(installed.packages()))) {
2625 if (is.null(ver ) || ver == " *" || ver == " " ) {
27- install_version (pkg )
26+ install.packages (pkg , repos = " https://cloud.r-project.org " )
2827 } else {
29- install_version(pkg , version = ver )
28+ remotes :: install_version(pkg , version = ver , repos = " https://cloud.r-project.org " )
3029 }
3130 }
3231}
3332
34- install.packages(" githubinstall" )
35- library(githubinstall )
36- gh_install_packages(" pacificclimate/climdex.pcic" , ref = " daf4790" ) # TODO in climdex.pcic: Release tag v.1.1.11 and update ref
33+
34+ remotes :: install_github(" pacificclimate/climdex.pcic@daf4790" ,
35+ dependencies = TRUE ,
36+ )
You can’t perform that action at this time.
0 commit comments