Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How to rename R icon in Windows' XP taskbar ? To display for example "R 2.13.0" instead of "RGui" ? Is it possible to do that from the inside of R (from the level of console) ?

ps. I'm not interested in building new form modified source

share|improve this question
add comment

migrated from stackoverflow.com Jun 4 '11 at 2:31

This question came from our site for professional and enthusiast programmers.

2 Answers

Right click on the icon on your desktop or on the Programs popup (in Windows) and "Rename" should be one of the options. You are only renaming the icon, not the R executable. Doing it from within R would be very painful (if it's even possible).

share|improve this answer
    
So there isn't any way to change the name of RGUI main window ? .Platform$GUI gives "RGui" and there is no possibility to change that parameter (only it's name) ? –  Qbik Jun 3 '11 at 22:52
    
That value is used by programs to determine if graphics or API differences need to be accounted for. It is not going to change either the taskbar label in Windows (which I thought you wanted to modify) or the console header in the GUI (which now seems to be your concern.) On my Mac under OSX it returns "AQUA", and nothing ever gets displayed with that name. If I change to a virtual WinXP session, it will then return "RGui". –  DWin Jun 3 '11 at 23:40
    
setWindowTitle(title='R 2.13.0', suffix='') –  Qbik Jun 4 '11 at 14:25
add comment
up vote 0 down vote accepted

And more interesting thing :

for(i in 1:1000) {
     setWindowTitle(title=paste(i), suffix='')
     Sys.sleep(0.5)
}

which gives number of iteration in taskbar, that doesn't work at RStudio, unfortunately parameter of Sys.sleep() must be quite big, so it's useful only for loops with long time of execution of each iteration

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.