Error saying "Error in open.connection(x, "rb") : Timeout was reached:"

0 votes

I'm scrap a web page. 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

and I'm getting the following error when I try to execute it.

Error in open.connection(x, "rb") :
  Timeout was reached: Operation timed out after 10000 milliseconds with 0 out of 0 bytes received
Nov 21, 2018 in Data Analytics by Ali
• 10,380 points
451 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Hey @Ali, even I had faced the same error, disabling the vpn worked for me. Try it and let me know if it works for you as well. Thank you:)
answered Nov 21, 2018 by Maverick
• 10,020 points

Related Questions In Data Analytics

0 votes
1 answer

": cannot open the connection" Error in R

There can be two reasons for this ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 36,260 points
259 views
0 votes
1 answer

Error saying "Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ"

Make sure is a factor time <- as.factor(c("pm", ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,020 points
525 views
0 votes
1 answer

Error saying cannot open file 'file.pdf' when trying to save a plot in ggplot

You could try adding the following line ...READ MORE

answered Nov 9, 2018 in Data Analytics by Maverick
• 10,020 points
238 views
0 votes
1 answer

Error saying "Error in lag(x, 1) : unused argument (1)"

lag only works as expected with time-series ...READ MORE

answered Nov 16, 2018 in Data Analytics by Maverick
• 10,020 points
39 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error saying " cannot open the connection" when trying to install a package in R

Try install.packages(“package_name”, repos="http://cran.us.r-p ...READ MORE

answered Nov 26, 2018 in Data Analytics by Maverick
• 10,020 points
170 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.