stevec
stevec

Reputation: 52238

Access help for class method in R?

We can get help for any function like so ?dplyr::select

How can we get help for a class method, such as remDr$findElement("css", "body") (used here). In aforementioned example, findElement is a method on an object of class remoteDriver

Note that we can look up the help docs online (e.g. at CRAN or github etc), but that's not what I'm after here - I would like the help inside of R (e.g. for offline use)

Upvotes: 1

Views: 216

Answers (1)

Roland
Roland

Reputation: 132676

R has several class systems. Use of the $ operator seems to indicate that RSelenium uses the reference class system (can be confirmed by checking the source code). The remDr object in the linked example is created by a call to the remoteDriver function and (as usual) the documentation of that function explains what calling it returns. There, the authors also explain the methods.

So, just use help("remoteDriver").

Upvotes: 1

Related Questions