[R-package] remove temporary files created in configure.win #4752
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On Windows builds in #3946, I see the following NOTE from
R CMD check
Example build: https://github.com/microsoft/LightGBM/runs/3367486204?check_suite_focus=true.
After pushing the same change from this PR to #3946, I can confirm that this
R CMD check
NOTE no longer shows up incran
Windows builds. e.g. https://github.com/microsoft/LightGBM/runs/4053638197?check_suite_focus=true.The file
conftest.cpp
is created by tests run inconfigure.win
which compile test programs to figure out compiler flags to use when compiling LightGBM.LightGBM/R-package/configure.win
Line 30 in dcae8dd
LightGBM/R-package/configure.win
Line 52 in dcae8dd
This PR proposes adding code to
configure.win
to ensure that such files are removed as soon as those tests are done.Shouldn't a similar change be made in
configure.ac
/configure
?I don't think this is necessary for
configure.ac
because I believeconfigure
(created byautoconf
) handles that automatically through the use ofautoconf
'sAC_LANG_CONFTEST
directive.LightGBM/R-package/configure
Line 1530 in dcae8dd
Why haven't we seen this note from
R CMD check
before?I think this is only being observed in #3946 because with vignettes added,
R CMD build
has to install the package to build it (sinceR CMD build
bundles the vignette HTML into source packages by default).