Cannot open file '', reason No such file or directory

前端 未结 1 1866
不思量自难忘°
不思量自难忘° 2021-01-27 08:35

I\'ve run into the following problem, which sometimes happens when running the code in R under Rserve. So far I was unable to replicate this.

I first create a P

相关标签:
1条回答
  • 2021-01-27 08:59

    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:")
    
    0 讨论(0)
提交回复
热议问题