Error in file.exists(code[1]) :
file name conversion problem -- name too long?
In addition: Warning messages:
1: In readLines(path1) :
incomplete final line found on 'C:/Users/zhuyu/Documents/work/1.txt'
可我文件名都对呀。之前试过也不报错,今天突然就开始报错了0.0
- for(i in 1:4){
- input_path<-paste("C:/Users/zhuyu/Documents/work/",i,".txt")
- path1<-gsub("([ ])", "", input_path)
- texts<-readLines(path1)
这个是程序一部分
额,不好意思,刚才检查了一下,虽然还是报错,但程序执行了,不过有一点,文件读取进来都变成乱码了。我每个txt都是UTF-8格式存的。