调用file.choose()时RStudio崩溃

时间:2015-06-19 04:19:25

标签: r

尝试执行时会出现错误:

myFile <- file.choose()
myData  <- read.csv(myFile, header=FALSE, sep=",")

然而

myData <- read.csv(file.choose(), header=FALSE, sep=",")

工作稳定。第一次实施有什么问题?

sessionInfo():

R version 3.2.0 (2015-04-16)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_New Zealand.1252  LC_CTYPE=English_New Zealand.1252   
[3] LC_MONETARY=English_New Zealand.1252 LC_NUMERIC=C                        
[5] LC_TIME=English_New Zealand.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] tools_3.2.0

0 个答案:

没有答案