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

Enforce R-package dependencies in build_r.R before compilation begins #1672

Merged
merged 2 commits into from
Sep 23, 2018
Merged

Conversation

zkurtz
Copy link
Contributor

@zkurtz zkurtz commented Sep 16, 2018

I found myself forgetting to install a couple of R-package dependencies repeatedly on successive LightGBM installations. This wasted some time because compilation runs for quite a while before getting to the part where these packages are required.

build_r.R Outdated
required = c("testthat", "roxygen2", "devtools")
)
pkgs$missing = setdiff(pkgs$required, pkgs$installed)
if(length(pkgs$missing) > 0){
Copy link
Contributor

Choose a reason for hiding this comment

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

add spacing

build_r.R Outdated
message = paste0(
"The following R-packages are required for ",
"the LightGBM R-package install: \n",
paste0(pkgs_string, collapse = ''),
Copy link
Contributor

Choose a reason for hiding this comment

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

"" instead of '' for consistency

build_r.R Outdated Show resolved Hide resolved
@jameslamb
Copy link
Collaborator

@zkurtz looks good to me! Thanks for the change

@Laurae2 I will merge when all the CI stuff builds

@Laurae2
Copy link
Contributor

Laurae2 commented Sep 23, 2018

@jameslamb To merge?

@jameslamb
Copy link
Collaborator

@Laurae2 yep looks good to me! I'll merge

@jameslamb jameslamb merged commit 09e651f into microsoft:master Sep 23, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants