GitHub user falaki opened a pull request:
https://github.com/apache/spark/pull/19959
[SPARK-22766] Install R linter package in spark lib directory
## What changes were proposed in this pull request?
`dev/lint-r.R` file installs uses `devtools` to install `jimhester/lintr`
package in the default site library location which is
`/usr/local/lib/R/site-library`. This is not recommended and can fail because
we are running this script as jenkins while that directory is owned by root.
This patch changes `lint-r.R` to install the linter package in a local
directory.
## How was this patch tested?
Existing linter should pass.
cc @JoshRosen
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/falaki/spark SPARK-22766
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19959.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19959
----
commit 2376b0b33f0bfd4c14e3288cc647d8249089f095
Author: Hossein <[email protected]>
Date: 2017-12-12T23:03:19Z
Installing lintr package in Spark library location instead of site-library
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]