Re: [Rd] 答复: R-4.3 version list.files function could not work correctly in chinese

2023-08-15 Thread Tomas Kalibera
Dear 叶月光, as discussed on this thread, Ivan Krylov found a bug in R, which could be causing the problem you have run into. To confirm this is the cause, could you please check outside R (say in explorer) if you have any file with a very long name in the directory? And if so, does moving that f

Re: [Rd] 答复: R-4.3 version list.files function could not work correctly in chinese

2023-08-14 Thread Kevin Ushey
Just to rule it out... is it possible that R is listing these files successfully, but is not printing the Chinese characters in those names for some reason? Using your example, what is the output of: f <- list.files(a, recursive = T) nchar(f) Does the reported number of characters match

[Rd] 答复: R-4.3 version list.files function could not work correctly in chinese

2023-08-14 Thread 叶月光
Rterm.exe test result。 > a = readline() D:\Project_Delivery\ > > > list.files(a,recursive = T) [1] "2022(1).xlsx" [2] "conf_custom_wf_wt_map_202308091545.csv" [3] ".R" [4] ".xlsx" [5] "_.xlsx" [6] ".xlsx" [7] " (3).xlsx" [8] "20230222113605379(1).xlsx" [9] "_2022_20230811.docx" All the file