Github user felixcheung commented on the issue:
https://github.com/apache/spark/pull/13636
FYI, this is what I see running on R 3.3:
```
1. Error: string operators (@test_sparkSQL.R#1163)
-----------------------------
unable to find an inherited method for function âstartsWithâ for
signature â"character"â
1: expect_true(startsWith("Hello World", "Hello")) at
/opt/spark-2.0.0-bin-hadoop2.6/R/lib/SparkR/tests/testthat/test_sparkSQL.R:1163
2: expect(identical(as.vector(object), TRUE), sprintf("%s isn't true.",
lab), info = info)
3: as.expectation(exp, ..., srcref = srcref)
4: identical(as.vector(object), TRUE)
5: as.vector(object)
6: startsWith("Hello World", "Hello")
7: (function (classes, fdef, mtable)
{
methods <- .findInheritedMethods(classes, fdef, mtable)
if (length(methods) == 1L)
return(methods[[1L]])
else if (length(methods) == 0L) {
cnames <- paste0("\"", vapply(classes, as.character, ""), "\"",
collapse = ", ")
stop(gettextf("unable to find an inherited method for function
%s for signature %s",
sQuote(fdef@generic), sQuote(cnames)), domain = NA)
}
else stop("Internal error in finding inherited methods; didn't
return a unique method",
domain = NA)
})(list("character"), structure(function (x, prefix)
{
standardGeneric("startsWith")
}, generic = structure("startsWith", package = "SparkR"), package =
"SparkR", group = list(), valueClass = character(0), signature = c("x",
"prefix"), default = `\001NULL\001`, skeleton = (function (x, prefix)
stop("invalid call in method dispatch to 'startsWith' (no default
method)", domain = NA))(x,
prefix), class = structure("nonstandardGenericFunction", package =
"methods")),
<environment>)
8: stop(gettextf("unable to find an inherited method for function %s for
signature %s",
sQuote(fdef@generic), sQuote(cnames)), domain = NA)
```
I will double check if there is indeed a problem with `startsWith("Hello
World", "Hello")` when SparkR is loaded, or the tests are not up-to-date on
what's being masked.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]