[MINOR][R] Add knitr and rmarkdown packages/improve output for version info in AppVeyor tests #18336
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.
What changes were proposed in this pull request?
This PR proposes three things as below:
Install packages per documentation - this does not affect the tests itself (but CRAN which we are not doing via AppVeyor) up to my knowledge.
This adds
knitr
andrmarkdown
per https://github.com/apache/spark/blob/45824fb608930eb461e7df53bb678c9534c183a9/R/WINDOWS.md#unit-tests (please see 45824fb)Improve logs/shorten logs - actually, long logs can be a problem on AppVeyor (e.g., see #17873)
R -e ...
repeats printing R information for each invocation as below:It looks reducing the call might be slightly better and print out the versions together looks more readable.
Before:
After:
Add
appveyor.yml
/dev/appveyor-install-dependencies.ps1
for triggering the testChanging this file might break the test, e.g., #16927
How was this patch tested?
Before (please see https://ci.appveyor.com/project/HyukjinKwon/spark/build/169-master)
After (please see the AppVeyor build in this PR):