用download.file下载文件,结果报错了。。用了镜像的,不知道怎么回事
url <- "https://ftp.ebi.ac.uk/pride-archive/2016/06/PXD004163/Yan_miR_Protein_table.flatprottable.txt"
download.file(url, destfile = "./miR_Proteintable.txt",method = "auto")
df.prot = read.table("miR_Proteintable.txt",stringsAsFactors = FALSE, header = TRUE, quote = "", comment.char = "",sep = "\t")
Error in download.file(url, destfile = "./miR_Proteintable.txt", method = "auto") :
cannot open URL 'https://ftp.ebi.ac.uk/pride-archive/2016/06/PXD004163/Yan_miR_Protein_table.flatprottable.txt'
In addition: Warning messages:
1: In download.file(url, destfile = "./miR_Proteintable.txt", method = "auto") :
downloaded length 0 != reported length 11
2: In download.file(url, destfile = "./miR_Proteintable.txt", method = "auto") :
cannot open URL 'https://ftp.ebi.ac.uk/pride-archive/2016/06/PXD004163/Yan_miR_Protein_table.flatprottable.txt': HTTP status was '502 Bad Gateway'