stacomi

0th

Percentile

Function that loads the loginwindow, tests connection, and then destroys the window

Function that loads the loginwindow, tests connection, and then destroys the window

Usage
stacomi(gr_interface=TRUE,login_window=TRUE,database_expected=TRUE)
Arguments
gr_interface

Boolean, if TRUE the program will launch the graphical interface

login_window

Boolean, if TRUE a login window will be displayed asking the user to specify user name.

database_expected

Boolean, if TRUE pre launch tests will be run to test the connection validity

Note

The defaut behaviour of the program is to run through the following elements

  • login window The program opens a login window to prompt the user to give his usernames and passwords. default values will proposed from "C:/program files/stacomi/calcmig.csv" and if this file does not exists, from file.path(.libPaths(),"stacomiR","config","calcmig.csv") as a default. If login_window=FALSE the program will skip the login window and use calcmig values for user (uid) and password(pwd) as a default.

  • tests for connection Test for the existence of a calcmig.csv file, and then the existence of the file usr.tr_taxon_tax where usr is the username extracted from calcmig. These tests are only done if database_expected=TRUE. If the test don't pass, then the user is prompted for a "login window" even if argument login_window was set to FALSE at launch.

  • graphical interface When either, previous tests have been run successfully, or the value for database_expected=FALSE the program will launch. If graphical_interface is TRUE, the program will use a graphical interface interface_graphique to build the graphical interface, otherwise the program is expected to run through the command line.

When database_expected=FALSE a connection to the database is not expected. Therefore test are run by calling examples object stored in Rdata.

Aliases
  • stacomi
Examples

 require(stacomiR)
#launch stacomi with the graphical interface
  	
	stacomi()

 # launch stacomi but do not prompt for password
 	
	stacomi(login_window=FALSE)
  
#launch stacomi without connection to the database
stacomi(gr_interface=FALSE,login_window=FALSE,database_expected=FALSE)
Documentation reproduced from package stacomiR, version 0.5.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.