0

I am trying to use easyPubMed package in R to download content from PubMed in txt format. I am trying to run the following example:

dami_on_pubmed <- get_pubmed_ids("Damiano Fantini[AU]")

However, at this point I get the following error:

Error in url(myPubmedURL, open = "rb") : https:// URLs are not supported

How to solve this problem? Thanks

Demitrian
  • 3,200
  • 1
  • 24
  • 41
Ruser
  • 11
  • 1
  • Weird. I cannot reproduce this error... `url` should support https:// URLs... – Damiano Fantini Aug 31 '17 at 17:46
  • 1
    Works with me. `str(dami_on_pubmed)` gives me `List of 9`. – Rui Barradas Aug 31 '17 at 17:58
  • I found this. It might be useful: [https://stackoverflow.com/questions/7715723/sourcing-r-script-over-https]. If you are working in Windows, maybe you need an extra parameter to allow https data download to work. Alternatively, are you sure you are not behind a firewall or something? – Damiano Fantini Aug 31 '17 at 18:03
  • @DamianoFantini I'm using RGui.exe, R 3.41 on Windows 10. So I'm not sure whether that's the problem. – Rui Barradas Aug 31 '17 at 19:12
  • I use R version 3.2.4 on Linux 64-bit. Unfortunately, I still cannot sort it out. I followed the link provided by Damiano but I think the solution there is relevant only for Windows? – Ruser Aug 31 '17 at 20:03
  • I use R version 3.3.1 (2016-06-21) on Ubuntu 64-bit. Can you open any other _https_ URL using `url`? What do you get if you execute `url("https://www.google.com", "rb")`? – Damiano Fantini Aug 31 '17 at 20:22
  • I get exactly the same error: Error in url("https://www.google.com", "rb") : https:// URLs are not supported. What could be the reason for this? – Ruser Sep 01 '17 at 16:16

0 Answers0