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

[R-package] Fix build_r.R failing in Windows #1694

Merged
merged 4 commits into from
Sep 23, 2018
Merged

[R-package] Fix build_r.R failing in Windows #1694

merged 4 commits into from
Sep 23, 2018

Conversation

Laurae2
Copy link
Contributor

@Laurae2 Laurae2 commented Sep 23, 2018

Fixes #1693

build_r.R Outdated
@@ -1,4 +1,4 @@
# for macOS users who have decided to use gcc
# Fr macOS users who have decided to use gcc
Copy link
Collaborator

Choose a reason for hiding this comment

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

For

build_r.R Outdated
)
result <- file.copy(from = "src/",
to = file.path("lightgbm_r", "src/")
, recursive = TRUE,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Two , at one line

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

TIL recursive=TRUE can cause issues. Thanks for the fix!

)
result <- file.copy(from = "CMakeLists.txt",
to = file.path("lightgbm_r", "inst", "bin/"),
overwrite = TRUE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this what was causing the problem? (looks like you removed the recursive = TRUE)

A lot of these are formatting changes, so trying to find whichever thing was causing the issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had two errors:

  • on devtools::document(pkg = "lightgbm_r/") (because of the trailing slash)
  • on the file with recursive (it causes a warning, which causes an error when R is setup to throw an error on warnings)

@jameslamb jameslamb merged commit 2a39b70 into master Sep 23, 2018
@Laurae2
Copy link
Contributor Author

Laurae2 commented Jan 27, 2019

@jameslamb Do you have the rights to delete the branch fix-#1693 ? It seems I cannot delete it anymore (getting GitHub 404 error).

@StrikerRUS StrikerRUS deleted the fix-#1693 branch January 28, 2019 13:26
@StrikerRUS
Copy link
Collaborator

@Laurae2 I've removed it:

image

@jameslamb
Copy link
Collaborator

Thanks @StrikerRUS !

@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.

[R-package] build_r.R fails in Windows
3 participants