Closed harshangrjn closed 3 years ago
I think the directory has to exist. Does it in your case?
I do have the "results" directory. But it throws an error about a folder which I haven't asked to save the file in. That's why, I was surprised.
What's the output of ; pwd
?
My current directory is ~/code
, where the script to generate the pdf is contained. And I also have the ~/code/results
folder.
It works for me:
Is there a way to specify a particular path, something like
save(PDF("results/test"), tp)
instead of saving in the default folder? Currently I get an error of this form:results/results: no such file or directory (ENOENT)