제한된 함수에 사용자 지정 인수 전달하기
오른쪽 콘솔에서 다음 코드를 실행하세요:
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()
}
왜 "Google"이 아니라 "Wikipedia"가 세 번 출력될까요?
이 연습은 강의의 일부입니다
