[R] Time out error while connecting to Github repository
Martin Maechler
m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Mon Sep 4 14:59:19 CEST 2023
>>>>> siddharth sahasrabudhe via R-help
>>>>> on Sun, 3 Sep 2023 09:54:28 +0530 writes:
> I want to access the .csv file from my github
> repository. While connecting to the Github repository I am
> getting the following error:
> Error in curl::curl_fetch_memory(file) : Timeout was
> reached: [raw.githubusercontent.com] Failed to connect to
> raw.githubusercontent.com port 443 after 5250 ms: Timed
> out
> The R-code is as below:
library(tidyverse) ## << UNNEEDED !
library(rio)
> data <- import("
> https://raw.githubusercontent.com/siddharth-sahasrabudhe/Youtube-video-files/main/deck.csv
> ")
> Can you please suggest how I can able to resolve this
> issue?
Yes: You used the wrong "file name", because you added a
<newline> / <linebreak>
on both ends by breaking the line.
This works nicely:
> require(rio)
> dd <- import("https://raw.githubusercontent.com/siddharth-sahasrabudhe/Youtube-video-files/main/deck.csv")
> str(dd)
'data.frame': 52 obs. of 3 variables:
$ face : chr "king" "queen" "jack" "ten" ...
$ suit : chr "spades" "spades" "spades" "spades" ...
$ value: int 13 12 11 10 9 8 7 6 5 4 ...
> --
> Regards Siddharth Sahasrabudhe
More information about the R-help
mailing list