Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

selectDir

Display Dialogue: Select directory


Description

Display the default directory chooser prompt provided by the Operating System.

Usage

selectDir(initialdir=getwd(), mustexist=TRUE, title="", 
    usewidget=NULL)

Arguments

initialdir

initially selected directory

mustexist

if logical value is TRUE, only a existing directory can be selected

title

title for the prompt window

usewidget

store the selected directory in the named entry widget

Value

The directory path selected by the user

Author(s)

Alex Couture-Beil, Vancouver Island University, Nanaimo BC

See Also

Examples

## 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)

PBSmodelling

GUI Tools Made Easy: Interact with Models and Explore Data

v2.68.8
GPL (>= 2)
Authors
Jon T. Schnute [aut], Alex Couture-Beil [aut], Rowan Haigh [aut, cre], Nicholas Boers [ctb], Anisa Egeli [ctb], A. R. Kronlund [ctb], Steve Martell [ctb], Norm Olsen [ctb]
Initial release
2019-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.