I'm trying to scrap a webpage and this is my code.
url_base <- "https://cran.r-project.org/web/packages/available_packages_by_name.html"
map_df(1:100, function(i){
page <- read_html(sprintf(url_base,i))
data.frame(IssueID = html_text(html_nodes(page,"h1")),
heading = html_text(html_nodes(page,"td")),
description = html_text(html_nodes(page,"td")))
}) <- packages
I end up with the following error.
Error: object 'packages' not found
Excuse me if its a very stupid doubt. Thank you :)