已经修改了工作路径还是读不到,这个包是弹出了对话框拖取文件的,但是用给的参考代码就可以运行
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open file 'D:/鍖楀伐鍟哱鏁版嵁鍒嗘瀽\statanalysis\Data_example\PhenoFile.csv': No such file or directory
这一段是上传了文件之后显示的错误,我没有写代码,直接选取的文件
datpath <- system.file('extdata',package = 'statTarget')
samPeno <- paste(datpath,'MTBLS79_sampleList.csv', sep='/')
samFile <- paste(datpath,'MTBLS79.csv', sep='/')
shiftCor(samPeno,samFile, Frule = 0.8, MLmethod = "QCRFSC", QCspan = 0,imputeM = "KNN")
这是运行的参考代码,就能读取文件,求帮忙解答这是为什么啊,网上搜到的答案都是设置工作路径,我已经设置成了D盘了啊
请问参考代码是什么意思呢,我是否可以参照的去运行?
谢谢