Skip to content

Commit

Permalink
Use https://packagemanager.rstudio.com` to install R packages faster (
Browse files Browse the repository at this point in the history
…#5220)

* use https://packagemanager.rstudio.com/cran

Signed-off-by: harupy <hkawamura0130@gmail.com>

* set working-directory

Signed-off-by: harupy <hkawamura0130@gmail.com>

* udpate comment

Signed-off-by: harupy <hkawamura0130@gmail.com>

* udpate comment

Signed-off-by: harupy <hkawamura0130@gmail.com>
  • Loading branch information
harupy committed Jan 6, 2022
1 parent 080c058 commit d83d69d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/master.yml
Expand Up @@ -95,9 +95,10 @@ jobs:
sudo apt-get install -y libcurl4-openssl-dev
sudo R CMD javareconf
- name: Install dependencies
working-directory: mlflow/R/mlflow
run: |
install.packages("devtools")
remotes::install_deps('mlflow/R/mlflow', dependencies = TRUE, upgrade = FALSE)
remotes::install_deps('.', dependencies = TRUE, upgrade = FALSE)
shell: Rscript {0}
- name: Create test environment
run: |
Expand Down
3 changes: 3 additions & 0 deletions mlflow/R/mlflow/.Rprofile
@@ -0,0 +1,3 @@
# https://packagemanager.rstudio.com provides pre-compiled package binaries for Linux
# that can be installed significantly faster than uncompiled package sources.
options(repos = c(REPO_NAME = "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"))

0 comments on commit d83d69d

Please sign in to comment.