See example for the element order in the vectors
messageyesno.png
To get the menu just use the following code:
vlabel<-'Variable Exists.Overwrite ?'ans<-messageyesno(vlabel)
References
Lawrence M.F.,Verzani J., (2012) Programming Graphical User Interfaces in R,CRC Press Taylor & Francis Group