對節流函式傳入自訂引數
請在右側的主控台執行下列程式碼:
throttled_read_html <- slowly(~ read_html("https://wikipedia.org"),
rate = rate_delay(0.5))
for(i in c(1, 2, 3)){
throttled_read_html("https://google.com") %>%
html_element("title") %>%
html_text() %>%
print()
}
為什麼它會列印 "Wikipedia" 三次,而不是 "Google"?
本練習屬於課程
