Skip to content

Commit

Permalink
Use https://packagemanager.rstudio.com to install packages faster
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <hkawamura0130@gmail.com>
  • Loading branch information
harupy committed Jan 5, 2022
1 parent 5632f2f commit e2f8e0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ jobs:
# `os_name` will be like "Ubuntu-20.04.1-LTS"
os_name=$(lsb_release -ds | sed 's/\s/-/g')
echo "::set-output name=os-name::$os_name"
- name: Cache R packages
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
# We cache R dependencies based on a tuple of the current OS, the R version, and the list of
# R dependencies
key: ${{ steps.os-name.outputs.os-name }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
# - name: Cache R packages
# uses: actions/cache@v2
# with:
# path: ${{ env.R_LIBS_USER }}
# # We cache R dependencies based on a tuple of the current OS, the R version, and the list of
# # R dependencies
# key: ${{ steps.os-name.outputs.os-name }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
- name: Install system dependencies
run: |
sudo apt-get install -y libcurl4-openssl-dev
Expand Down
3 changes: 3 additions & 0 deletions mlflow/R/mlflow/.Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://packagemanager.rstudio.com provides pre-compiled binary packages for Linux
# that can be installed significantly faster.
options(repos = c(REPO_NAME = "https://packagemanager.rstudio.com/all/latest"))

0 comments on commit e2f8e0d

Please sign in to comment.