selectDir | R Documentation |
Display the default directory chooser prompt provided by the Operating System.
selectDir(initialdir=getwd(), mustexist=TRUE, title="",
usewidget=NULL)
initialdir |
initially selected directory |
mustexist |
if logical value is |
title |
title for the prompt window |
usewidget |
store the selected directory in the named entry widget |
The directory path selected by the user
Alex Couture-Beil, Vancouver Island University, Nanaimo BC
selectFile
## Not run:
local(envir=.PBSmodEnv,expr={
dir(selectDir(title="select a directory to list contents of"))
#integration with widget via doAction
createWin( c( "entry foo mode=character",
"button text=\"select dir\"
func=doAction action=\"selectDir(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.