stop_browser: Stop web driver process and Remove its Object

Description Usage Arguments Value Examples

View source: R/run_webdriver.R

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)

salimk/Rcrawler documentation built on May 25, 2020, 5:02 p.m.