inst/Examples/ch-Qt/ex-qt-basic-file-dialog-api.R

###################################################
### code chunk number 182: Dialogs.Rnw:507-508
###################################################
dirname <- ""


###################################################
### code chunk number 183: QFileDialogAPI
###################################################
dialog <- Qt$QFileDialog(NULL, "Choose an R file", getwd(), 
                      name_filter)
dialog$fileMode <- Qt$QFileDialog$ExistingFiles
dialog$setHistory(dirname)


###################################################
### code chunk number 184: Dialogs.Rnw:520-522 (eval = FALSE)
###################################################
if(dialog$exec())
   print(dialog$selectedFiles())

Try the ProgGUIinR package in your browser

Any scripts or data that you put into this service are public.

ProgGUIinR documentation built on May 2, 2019, 4:04 p.m.