ERROR: Download.file function

Hi everyone, I have an issue in R.
I wanted to download my historical data from Lichess with this link (, but when I use the download.file, I received an error.

I will show you my code:

url <- ""

destfile <- "C:/Users/Sol/Downloads/nachoeigu_chess.pgn"

download.file(url, destfile, method = "libcurl")

The error I receive is this:

download.file(url, destfile, method = "libcurl")

trying URL '(the URL)'

Content length 162 bytes

Error in download.file(url, destfile, method = "libcurl") :
cannot open URL '(the URL)'

In addition: Warning message:

In download.file(url, destfile, method = "libcurl") :
URL '(the URL)': status was 'SSL connect error'

OFF: I put "(The URL)" in reffering to the first link I pasted, because RStudio Community doesnt allow me to post a lot of URLs.

Thank you guys for read my issue.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.