[R] Copy & Paste from tktext on Mac

Anne Skoeries home at anne-skoeries.de
Mon Aug 24 14:21:14 CEST 2009

Hi there,

a text Window is supposed to map the shortcuts for copying and pasting  
(<Ctrl-C>, <Ctrl-V>) automatically.
I'm working under Mac OS X and my text window doesn't really map these  
functions automatically - it works fine under Windows. Is there an  
easy way to map copy&paste functions to a text window under Mac OS X?

This is what I'm doing with my text window:

tt <- tktoplevel()
txt <- tktext(tt, bg = "white", height=30, width=100, borderwidth=2)
scr <- tkscrollbar(tt, orient = "vertical", repeatinterval = 1,  
command = function(...) tkyview(txt, ...))
tkconfigure(txt, yscrollcommand = function(...) tkset(scr, ...))
tkgrid(txt, column=0, row=0, columnspan=2, sticky="nwse")

Session Info:
R version 2.9.1 (2009-06-26)


attached base packages:
[1] tcltk     stats     graphics  grDevices utils     datasets   
methods   base

other attached packages:
[1] tkrplot_0.0-18 rpart_3.1-44   relimp_1.0-1

Thanks so much!
Anne Skoeries

More information about the R-help mailing list