Re: [R] trouble with tkgetOpenFile

2008-09-17 Thread Gang Chen
-- > John Fox, Professor > Department of Sociology > McMaster University > Hamilton, Ontario, Canada > web: socserv.mcmaster.ca/jfox > >> -Original Message- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > On >> Behalf Of Gang Chen >> Se

Re: [R] trouble with tkgetOpenFile

2008-09-17 Thread John Fox
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Gang Chen > Sent: September-17-08 4:31 PM > To: [EMAIL PROTECTED] > Subject: [R] trouble with tkgetOpenFile > > I'm trying to use the following loop to open a window multiple times > to select files, but only the

[R] trouble with tkgetOpenFile

2008-09-17 Thread Gang Chen
I'm trying to use the following loop to open a window multiple times to select files, but only the last window shows up. What am I missing? library(tcltk) nWin <- 6 fn <- vector('list', nWin) for (ii in nWin) { fn[[ii]] <- tclvalue( tkgetOpenFile( filetypes = "{{Files} {.1D}} {{All files