Skip to content

Commit

Permalink
[SPARK-9121][SparkR] Get rid of the warnings about `no visible global…
Browse files Browse the repository at this point in the history
… function definition` in SparkR
  • Loading branch information
yu-iskw committed Jul 21, 2015
1 parent 1ddd0f2 commit 3a5e0ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/pkg/inst/tests/test_sparkSQL.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ context("SparkSQL functions")

# Utility function for easily checking the values of a StructField
checkStructField <- function(actual, expectedName, expectedType, expectedNullable) {
expect_equal(class(actual), "structField")
expect_equal(actual$name(), expectedName)
expect_equal(actual$dataType.toString(), expectedType)
expect_equal(actual$nullable(), expectedNullable)
testthat::expect_equal(class(actual), "structField")
testthat::expect_equal(actual$name(), expectedName)
testthat::expect_equal(actual$dataType.toString(), expectedType)
testthat::expect_equal(actual$nullable(), expectedNullable)
}

# Tests for SparkSQL functions in SparkR
Expand Down
1 change: 1 addition & 0 deletions dev/lint-r.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ library(lintr)
argv <- commandArgs(TRUE)
SPARK_ROOT_DIR <- as.character(argv[1])

library(SparkR, lib.loc = file.path(SPARK_ROOT_DIR, "R", "lib"))
path.to.package <- file.path(SPARK_ROOT_DIR, "R", "pkg")
lint_package(path.to.package, cache = FALSE)

0 comments on commit 3a5e0ab

Please sign in to comment.