Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use https://packagemanager.rstudio.com to install R packages faster #5220

Merged
merged 4 commits into from Jan 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)
Comment on lines +98 to +101
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run remotes::install_deps in mlflow/R/mlflow to allow R to find .Rprofile.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is .Rprofile file ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, in user home directory

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"))