See example for the element order in the vectors :
inpboxk6.png
To get the menu, just use the following code:
vlabel<-c('matrix1','matrix2','matrix3','matrix4','matrix5','matrix6')inp<-rep('TRUE',6)ans<-inpboxk6(vlabel,inp)
References
Lawrence M.F.,Verzani J., (2012) Programming Graphical User Interfaces in R,CRC Press Taylor & Francis Group