0

I've been struggling for ages trying to resolve this and rather lost so would really appreciate your help.

I am trying to scrape a Javascript page through RStudio on a Mac and not even getting started which is frustrating.

  1. I installed phantomjs through the brew command in Terminal
  2. I installed a standalone selenium server through brew in Terminal
  3. As soon as I run the checkForServer (or RSelenium::checkForServer) I get:

    Warning message: In order(as.numeric(gsub("(.)/.", "\1", selJAR)), decreasing = TRUE) : NAs introduced by coercion

Any ideas?

  • 1
    `checkForServer` and `startServer` are deprecated. The recommended way to run a Selenium Server with RSelenium is via Docker containers see http://rpubs.com/johndharrison/RSelenium-Docker – jdharrison Nov 28 '16 at 20:33
  • Thanks for the thought but it seems to be for Windows and Linux and I'm on a Mac. Or am I missing something? – Foothill_trudger Nov 28 '16 at 20:37
  • You can install Docker for Mac or Docker toolbox see https://docs.docker.com/engine/installation/mac/. Docker for Mac is analogous to running Docker in Linux. Docker toolbox is analogous to running Docker in Windows as per the linked vignette. – jdharrison Nov 28 '16 at 20:47
  • Thank you! It now works a treat. – Foothill_trudger Nov 28 '16 at 21:37

0 Answers0