R at the command line from ubuntu I am trying to download geo file at the command line I type R, so the command line go to
where I type download.file("http://www.ncbi.nlm.nih.gov/geo/download/?acc=GSE89413&format=file", + "gse89413.tar", + mode="wb")
but it does not work, it gave error : unable to resolve "www.ncbi.nlm.nih.gov"
and when I go to command line and type: wget ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE99nnn/GSE99xxx/suppl/GSE99xxx_RAW.tar it gave this message: unable to resolve host address 'ftp.ncbi.nlm.nih.gov'
So how to download this file in R at the command line???
any help is super highly appreciated
If you are getting an
unable to resolve errorthen it sounds like you have a host name resolution problem. Is the problem general or are you only getting it withwww.ncbi.nlm.nih.gov?While not ideal you could try this IP address to see if that fixes the problem:
130.14.29.110instead ofwww.ncbi.nlm.nih.govin the URL above.Hi, Thanks for your response. But did you actually were able to open this link in your R I tried your first method: download.file(url="ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE89nnn/GSE89413/suppl/", destfile="GSE89413_2016-10-30-NBL-cell-line-STAR-fpkm.txt.gz") and did not work either, it gave me cannot open URL "ftp://ftp.ncbi.nlm.nih.gov/geo/series/GSE89nnn/GSE89413/suppl/"
Hey, this would have been better as a comment to my answer, in order to maintain 'fluidity' of thought in the thread. Not to worry, though!
Yes, I was able to download the file in R using that exact command. From where do you run R? - a server/cluster installation? Do you have a firewall?
onemore100iq : Please use
ADD REPLY/ADD COMMENTwhen responding to existing posts to keep threads logically organized.