I'm trying to follow the web scraping case in https://www.tidyverse.org/blog/2025/04/learn-tidyverse-ai/ using the live_browser from ellmer. The prompt I'm using is:
Write R code for scraping data from https://www.usclimatedata.com/climate/durham/north-carolina/united-states/usnc0192.
Update the code to scrape data for all months from both of the tables on the website and organizing the data with months as rows and temperature types as columns. First scrape the data from the two tables for months January to June and July to December. Then put them together. Then reshape the data to have months as rows and temperature types as columns.
The live_browser works fine and returns the code, but after not outputting everything completely the following error occurs and the live_browser stops working and the previously generated content disappears.
Details
```
Warning: Error in readBin: Timeout was reached [api.deepseek.com]: Operation timed out after 62011 milliseconds with 302787 bytes received
99:
98: stop
97: raise_libcurl_error
96: readBin
95: resp_boundary_pushback
94: resp_stream_sse
93: method(chat_resp_stream, ellmer::Provider)
91: chat_resp_stream
84: evalq
83: evalq
82: iterator
76: base::evalq
75: base::evalq
74: evalq
73: evalq
72: iterator
66: base::evalq
65: base::evalq
64: evalq
63: evalq
62: iterator
60: base::evalq
59: base::evalq
58: evalq
57: evalq
56: onFulfilled
55: onFulfilled
53: onFulfilled
51: onFulfilled
49: func
48: contextFunc
47: .getReactiveEnvironment()$runWith
46: onFulfilled
45: onFulfilled
43: onFulfilled
41: func
40: contextFunc
39: .getReactiveEnvironment()$runWith
38: onFulfilled
37: onFulfilled
35: callback
32:
31: onFulfilled
21: f
20: FUN
19: lapply
18:
17: execCallbacks
16: run_now
15: service
14: serviceApp
From earlier call:
73: domain$wrapOnFulfilled
72: promiseDomain$onThen
71: action
64: promise
63: promise$then
62: promises::then
61: then
60: base::evalq
59: base::evalq
58: evalq
57: evalq
56: onFulfilled
55: onFulfilled
53: onFulfilled
51: onFulfilled
49: func
48: contextFunc
47: .getReactiveEnvironment()$runWith
46: onFulfilled
45: onFulfilled
43: onFulfilled
41: func
40: contextFunc
39: .getReactiveEnvironment()$runWith
38: onFulfilled
37: onFulfilled
35: callback
32:
31: onFulfilled
21: f
20: FUN
19: lapply
18:
17: execCallbacks
16: run_now
15: service
14: serviceApp
From earlier call:
114: domain$wrapOnFulfilled
113: promiseDomain$onThen
112: action
105: promise
104: promise$then
103: promises::then
102: then
101: base::evalq
100: base::evalq
99: evalq
98: evalq
97: instance
96: eval
95: eval
90: chat_append_stream_impl
89: chat_append_stream
88: shinychat::chat_append
87: observe
86:
7: shiny::runApp
6: shiny::runGadget
1: live_browser
```
I tried using options(timeout = 120) to increase the time, but the above error still appears.
I'm trying to follow the web scraping case in https://www.tidyverse.org/blog/2025/04/learn-tidyverse-ai/ using the live_browser from ellmer. The prompt I'm using is:
Write R code for scraping data from https://www.usclimatedata.com/climate/durham/north-carolina/united-states/usnc0192.
Update the code to scrape data for all months from both of the tables on the website and organizing the data with months as rows and temperature types as columns. First scrape the data from the two tables for months January to June and July to December. Then put them together. Then reshape the data to have months as rows and temperature types as columns.
The live_browser works fine and returns the code, but after not outputting everything completely the following error occurs and the live_browser stops working and the previously generated content disappears.
Details
``` Warning: Error in readBin: Timeout was reached [api.deepseek.com]: Operation timed out after 62011 milliseconds with 302787 bytes received 99: 98: stop 97: raise_libcurl_error 96: readBin 95: resp_boundary_pushback 94: resp_stream_sse 93: method(chat_resp_stream, ellmer::Provider) 91: chat_resp_stream 84: evalq 83: evalq 82: iterator 76: base::evalq 75: base::evalq 74: evalq 73: evalq 72: iterator 66: base::evalq 65: base::evalq 64: evalq 63: evalq 62: iterator 60: base::evalq 59: base::evalq 58: evalq 57: evalq 56: onFulfilled 55: onFulfilled 53: onFulfilled 51: onFulfilled 49: func 48: contextFunc 47: .getReactiveEnvironment()$runWith 46: onFulfilled 45: onFulfilled 43: onFulfilled 41: func 40: contextFunc 39: .getReactiveEnvironment()$runWith 38: onFulfilled 37: onFulfilled 35: callback 32: 31: onFulfilled 21: f 20: FUN 19: lapply 18: 17: execCallbacks 16: run_now 15: service 14: serviceApp From earlier call: 73: domain$wrapOnFulfilled 72: promiseDomain$onThen 71: action 64: promise 63: promise$then 62: promises::then 61: then 60: base::evalq 59: base::evalq 58: evalq 57: evalq 56: onFulfilled 55: onFulfilled 53: onFulfilled 51: onFulfilled 49: func 48: contextFunc 47: .getReactiveEnvironment()$runWith 46: onFulfilled 45: onFulfilled 43: onFulfilled 41: func 40: contextFunc 39: .getReactiveEnvironment()$runWith 38: onFulfilled 37: onFulfilled 35: callback 32: 31: onFulfilled 21: f 20: FUN 19: lapply 18: 17: execCallbacks 16: run_now 15: service 14: serviceApp From earlier call: 114: domain$wrapOnFulfilled 113: promiseDomain$onThen 112: action 105: promise 104: promise$then 103: promises::then 102: then 101: base::evalq 100: base::evalq 99: evalq 98: evalq 97: instance 96: eval 95: eval 90: chat_append_stream_impl 89: chat_append_stream 88: shinychat::chat_append 87: observe 86: 7: shiny::runApp 6: shiny::runGadget 1: live_browser ```I tried using options(timeout = 120) to increase the time, but the above error still appears.