[R] filename of current device
David Winsemius
dwinsemius at comcast.net
Thu May 15 00:36:42 CEST 2014
On May 14, 2014, at 3:04 PM, Andreas Leha wrote:
> Hi all,
>
> how do I find out about the filename, the currently open (let's say pdf)
> device is writing to?
>
> If I find 'dev.cur()' returning 'pdf 3' when I expect 'nulldevice 1' I
> would like to know, which file that pdf device is actually targeting.
>
> Any help for my poor organization is highly appreciated...
>
Have your read the help file for pdf()? The first argument is the default naming mechanism:
file = ifelse(onefile, "Rplots.pdf", "Rplot%03d.pdf")
So if you call pdf() then it will write to the working directory with a named constructed from those choices.
> Regards,
> Andreas
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius
Alameda, CA, USA
More information about the R-help
mailing list