在windows上使用RTCGAToolbox下载TCGA数据库时遇到了Error in file.rename……等问题

在windows上使用Rstudio下载TCGA数据库时遇到了Error in file.rename(from = file.path(destdir, fileList), to = destfile) : 'from' and 'to' are of different lengths问题。
使用的代码和控制台信息如下。
相关代码
library("RTCGAToolbox")
length.MArrayLM <- function(x) prod(dim(x))
getFirehoseDatasets()
Data = getFirehoseData(dataset = "BRCA",runDate = "20140115",
clinical = TRUE,RNASeqGene = TRUE,mRNAArray = TRUE,
Mutation = TRUE)
运行结果及报错内容
** library("RTCGAToolbox")
length.MArrayLM <- function(x) prod(dim(x))
getFirehoseDatasets()**
[1] "ACC" "BLCA" "BRCA" "CESC" "CHOL" "COADREAD"
[7] "COAD" "DLBC" "ESCA" "FP" "GBMLGG" "GBM"
[13] "HNSC" "KICH" "KIPAN" "KIRC" "KIRP" "LAML"
[19] "LGG" "LIHC" "LUAD" "LUSC" "MESO" "OV"
[25] "PAAD" "PCPG" "PRAD" "READ" "SARC" "SKCM"
[31] "STAD" "STES" "TGCT" "THCA" "THYM" "UCEC"
[37] "UCS" "UVM"
**> Data = getFirehoseData(dataset = "BRCA",runDate = "20140115",

gdac.broadinstitute.org_BRCA.Clinical_Pick_Tier1.Level_4.2014011500.0.0
trying URL 'http://gdac.broadinstitute.org/runs/stddata__2014_01_15/data/BRCA/20140115/gdac.broadinstitute.org_BRCA.Merge_rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.Level_3.2014011500.0.0.tar.gz'
Content type 'application/x-gzip' length 290063503 bytes (276.6 MB)
downloaded 800 KB

gdac.broadinstitute.org_BRCA.Merge_rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.Level_3.2014011500.0.0/BRCA.rnaseq__illuminahiseq_rnaseq__unc_edu__Level_3__gene_expression__data.data.txt: truncated gzip input
tar.exe: Error exit delayed from previous errors.
Error in file.rename(from = file.path(destdir, fileList), to = destfile) :
'from' and 'to' are of different lengths
In addition: Warning messages:
1: In download.file(url = fileLink, destfile = tcgafile, method = "auto", :
downloaded length 819200 != reported length 290063503
2: In system(cmd, intern = TRUE) :
running command 'tar.exe -tf "C:\Users\59590\AppData\Local\Temp\Rtmpiqh8jy/BRCA-RNAseqGene.tar.gz"' had status 1
3: In .exportFiles(paste0(fh_url, i), dataset, "-RNAseqGene.tar.gz", :
File path too long, make 'destdir' shorter
4: In untar(tcgafile, files = fileList, exdir = destdir) :
‘tar.exe -xf "C:\Users\59590\AppData\Local\Temp\Rtmpiqh8jy/BRCA-RNAseqGene.tar.gz" -C "C:/Users/59590/AppData/Local/Temp/Rtmpiqh8jy"’ returned error code 1
我的解答思路和尝试过的方法
不知如何解决
我想要达到的结果
能够使用RTCGAToolbox下载数据至R

img

img

文件路径太长
C:\Users\59590\AppData\Local\Temp\Rtmpiqh8jy/BRCA-RNAseqGene.tar.gz
改短一点。
Rtmpiqh8jy/BRCA-RNAseqGene这个是文件名吗?
如果是文件夹
你要修改一下
Rtmpiqh8jy\BRCA-RNAseqGene