selectFile | R Documentation |
Display the default Open or Save prompt provided by the Operating System.
selectFile(initialfile="", initialdir=getwd(),
filetype=list(c("*","All Files")), mode="open", multiple=FALSE,
title="", defaultextension="", usewidget=NULL)
initialfile |
initially selected file |
initialdir |
initially directory the dialog opens |
filetype |
a list of character vectors indicating file types made available
to users of the GUI. Each vector is of length one or two. The first element
specifies either the file extension or |
mode |
string: if |
multiple |
if |
title |
title for the prompt window |
defaultextension |
default file extension if none is provided by the user |
usewidget |
store the selected file in the named entry widget |
The file name and path of the file(s) selected by the user.
Alex Couture-Beil, Vancouver Island University, Nanaimo BC
selectDir
## Not run:
local(envir=.PBSmodEnv,expr={
#integration with widget via doAction
createWin( c( "entry foo mode=character width=60",
"button text=\"select file\"
func=doAction action=\"selectFile(usewidget=`foo`)\"" ), astext=TRUE )
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.