R: Function to build a widget for inputing database arguments
dbArgsWidget
R Documentation
Function to build a widget for inputing database arguments
Description
This functions creates a interactive widget to allow users to input
arguments for database connection for Unix.
Usage
dbArgsWidget()
Details
Database arguments include database name, user name, password, host
name, and table name.
Value
The function returns a list containing the following elements:
dbname
a charater string for the name of the database
host
a character string for the name or IP address of the host
machine
user
a character string for the name of the user
password
a character string for the password
tablename
a character string for the name of the database table
Author(s)
Jianhua Zhang
References
Rdbi
See Also
argsWidget
Examples
if(interactive()){
test <- dbArgsWidget()
}
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(tkWidgets)
Error in library(tkWidgets) : there is no package called 'tkWidgets'
Execution halted