rstudio / chromote

Chrome Remote Interface for R
https://rstudio.github.io/chromote/
156 stars 20 forks source link

Use option to set default timeout #155

Open gadenbuie opened 6 months ago

gadenbuie commented 6 months ago

Setting the default timeout currently requires the following code:

chrome <- chromote::default_chromote_object()
chrome$default_timeout <- 60
chromote::set_default_chromote_object(chrome)

b <- ChromoteSession$new()
b$default_timeout
#> 60

It'd be helpful to have an option, e.g. chromote.timeout (exists and is used for connection and setup timeouts) or chromote.timeout.default if we want to separate the two options.