Learn R Programming

Rcrawler (version 0.1.9-1)

stop_browser: 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

Run this code
# NOT RUN {
#Start the browser
br<-run_browser()

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

 
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab