Displaying 1 result from an estimated 1 matches for "expandnam".
Did you mean:
expandname
2010 Aug 21
1
R-level expansion of Rplot%03d.png
...thumbnail of the png file, with a
link to the pdf file.
I'm not happy with my default filename for the graphics. Is there a
way to expand the default filename of R graphic devices? I would like
to call it like this,
makePlot = function(p, name="Rplot%03d", width=300)
{
real.name = expandName(name) # function needed here
png(paste(name,".png",sep=""))
print(p)
dev.off()
pdf(paste(name,".pdf",sep=""))
print(p)
dev.off()
cat(noquote(paste('image:',real.name,'.png["',real.name,'",width=',width,',link="'...