Help!! I cant access github from R/Rstudio on my newly installed windows 10 PC

I cant seem to access github to install packages via R, please help



Downloading GitHub repo OHDSI/CohortMethod@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL ''

are you behind any firewall, personal / academic / corporate, that could be to blame ...
After considering that, I would investigate the download method.

getOption("download.file.method", default = "auto")

On my windows laptop this is "libcurl", and it would perform the download you require.

1 Like

Thanks for the reply, its my PC, got it yesterday but not in anyway an expert,

Tried your 2nd suggestion and got getOption("download.file.method", default = "auto")
[1] "libcurl"

Please any advice on how I would I go about disabling the firewall feature to be sure?

Can you access the link via your web browser?

1 Like

Thank you, for some reason it works now.

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.