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

[ci] changed strategy for installing R on AppVeyor #321

Merged
merged 2 commits into from
Mar 24, 2020
Merged

[ci] changed strategy for installing R on AppVeyor #321

merged 2 commits into from
Mar 24, 2020

Conversation

jameslamb
Copy link
Contributor

@StrikerRUS while working on microsoft/LightGBM#2936, I noticed that in this repo you're using a link like this to get R.exe:

appveyor DownloadFile https://cloud.r-project.org/bin/windows/base/R-${R_VERSION}-win.exe

I think that those links only work as long as that version is the latest release. In this PR, I propose changing to the /old URLs which you can rely on forever (so you can upgrade at your own pace).

@StrikerRUS
Copy link
Member

@jameslamb Wow, thank you very much! I have already encountered this problem twice. I thought about using some loop with possible future version numbers but wasn't smart enough to look for the permanent link 🙂

Only one note.
I think we can define R_VERSION: 3.6.2 in R-package/.R.appveyor.ps1 file to be consistent with Travis configuration:

if ! command -v R &> /dev/null; then
R_VER=3.6.2

@jameslamb
Copy link
Contributor Author

@jameslamb Wow, thank you very much! I have already encountered this problem twice. I thought about using some loop with possible future version numbers but wasn't smart enough to look for the permanent link 🙂

Only one note.
I think we can define R_VERSION: 3.6.2 in R-package/.R.appveyor.ps1 file to be consistent with Travis configuration:

if ! command -v R &> /dev/null; then
R_VER=3.6.2

sure! changed it in a3bac27

Copy link
Member

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

Thank you @jameslamb !

@StrikerRUS StrikerRUS merged commit e46e977 into RGF-team:master Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants