Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions dev/lint-r.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,17 @@ if (! library(SparkR, lib.loc = LOCAL_LIB_LOC, logical.return = TRUE)) {
stop("You should install SparkR in a local directory with `R/install-dev.sh`.")
}

# Installs lintr from Github in a local directory.
# Installs lintr and dependencies from Github in a local directory.

# Pinning Rcpp version to CRAN snapshot from 2017-10-15
install.packages("Rcpp", repos = "https://cran.microsoft.com/snapshot/2017-10-15", lib = LOCAL_LIB_LOC)

# NOTE: The CRAN's version is too old to adapt to our rules.
if ("lintr" %in% row.names(installed.packages()) == FALSE) {
devtools::install_github("jimhester/lintr@5431140")
}
# NOTE: We won't use the lintr package that might have been installed on the test machine
devtools::with_libpaths(new = LOCAL_LIB_LOC, devtools::install_github("jimhester/lintr@5431140"))

library(lintr)
library(lintr, lib.loc = LOCAL_LIB_LOC)
library(xmlparsedata, lib.loc = LOCAL_LIB_LOC)
library(methods)
library(testthat)
path.to.package <- file.path(SPARK_ROOT_DIR, "R", "pkg")
Expand Down