You can set the title of a plot device window with
windows(title = "The title")
#or equivalently
x11(title = "The title")
How you retrieve the title from a plot device window?
names(dev.cur()), attributes(dev.cur()), str(dev.cur()) and unclass(dev.cur()) don’t reveal anything useful.
It shouldn’t be possible from device properties cause it’s window property.
Under windows you could try mess with
names(getWindowsHandles())which gives me:E.g. for active device
grep("\\(ACTIVE\\)$", names(getWindowsHandles()), value=TRUE)return the title.It was easier than I thought:
Now some tests: