更新时间:2021-06-29 08:37:20
您可以使用扫描功能.在您的示例中:
You can use the scan function. In your example:
X = scan(what="character",allowEscapes=F, nmax = 1)
"C:\users\jordan\Documents\Computer Science\R\miscData.txt"
结果:
X
[1] "C:\\users\\jordan\\Documents\\Computer Science\\R\\miscData.txt"