[ESS-bugs] "//" on the Macintosh
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Tue Dec 10 22:48:31 CET 2019
> tempdir()
[1] "/var/folders/vq/xl0j17pn29g52mgx7lqxl8d80000gn/T//RtmpB9dpQB"
> tmp <- tempfile("ABCD", fileext=".pdf")
> tmp
[1] "/var/folders/vq/xl0j17pn29g52mgx7lqxl8d80000gn/T//RtmpB9dpQB/ABCD79804f1ca596.pdf"
> pdf(tmp)
> plot(1:10)
> dev.off()
quartz
2
Note the "//" in the filepath tmp.
The file is created as
"/var/folders/vq/xl0j17pn29g52mgx7lqxl8d80000gn/T/RtmpB9dpQB/ABCD79804200fde4pdf"
When I look for it in dired, it can't be found as dired stops at the
"//" and interprets it as
/RtmpB9dpQB/ABCD79804f1ca596.pdf
In order to look for it in dired, I need to
> gsub("//","/",tmp)
[1] "/var/folders/vq/xl0j17pn29g52mgx7lqxl8d80000gn/T/RtmpB9dpQB/ABCD79804f1ca596.pdf"
Can this be fixed by ESS, or by emacs?
Rich
More information about the ESS-bugs
mailing list