stop_browser {Rcrawler}R Documentation

Stop web driver process and Remove its Object

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

stop_browser(browser)

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

## Not run: 

#Start the browser
br<-run_browser()

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

 
## End(Not run)



[Package Rcrawler version 0.1.9-1 Index]