siddharth sahasrabudhe
2023-Sep-03 04:24 UTC
[R] Time out error while connecting to Github repository
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) 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? -- Regards Siddharth Sahasrabudhe [[alternative HTML version deleted]]
Martin Maechler
2023-Sep-04 12:59 UTC
[R] Time out error while connecting to Github repository
>>>>> 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