Skip to content

"NAs introduced by coercion" when running checkForServer() #79

@daattali

Description

@daattali

In the checkForServer() function, there is a line

selJAR <- xpathSApply(selXML, "//s:Key[contains(text(),'selenium-server-standalone')]", 
                       namespaces = c(s = "http://doc.s3.amazonaws.com/2006-03-01"), 
                       xmlValue)

that returns a list of the different versions of the jar file. The next line has

as.numeric(gsub("(.*)/.*", "\\1", selJAR))

Which assumes the list returned earlier was completely numeric. But the latest version has the string "beta" in it, so the conversion to numeric throws a warning.

> tail(gsub("(.*)/.*", "\\1", selJAR))
[1] "2.50"      "2.51"      "2.52"      "2.53"      "2.53"      "3.0-beta1"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions