here::here("credit.csv")
#> [1] "C:/Users/Hoas/AppData/Local/Temp/RtmpIhroB8/reprex5fd85aa42f0b/credit.csv"
getwd()
#> [1] "C:/Users/Hoas/AppData/Local/Temp/RtmpIhroB8/reprex5fd85aa42f0b"
<sup>Created on 2019-05-04 by the reprex package (v0.2.1)</sup>
可实际上我的工作目录不在这里!以上代码在脚本中运行和用 reprex 运行完全不一样。求解!
> here::here("credit.csv")
[1] "E:/1R/ML/credit.csv"
>
> getwd()
[1] "E:/1R/ML"