且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法打开文件“",原因是没有这样的文件或目录

更新时间:2022-04-24 23:01:23

file.path在文件系统中的可移植性要比paste大,因为它会自动设置适当的目录分隔符.仅将paste(或paste0)用作文件名:

file.path is more portable across file systems than paste, as it automatically sets appropriate directory separators. Use paste (or paste0) for just the filename:

pdf(file=file.path(output.dir, paste0("dates_", name, ".pdf")), 
    width=6.25,height=9,title="Breakdown Dates:")