>>>>> 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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to