stop_browser: Stop web driver process and Remove its Object

Description Usage Arguments Value Examples

Description

At the end of All your operations with the web river, you should stop its process and remove the driver R object else you may have troubles restarting R normaly. Throws and error if webdriver phantomjs cannot be found, or cannot be started. It works with a timeout of five seconds.

Usage

1

Arguments

browser

the web driver object created by run_browser

Value

A list of process, the callr::process object, and port, the local port where phantom is running.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 

#Start the browser
br<-run_browser()

#kill the browser process
stop_browser(br)
#remove the object reference
rm(br)

 
## End(Not run)

Rcrawler documentation built on May 2, 2019, 3:42 a.m.