stacomi {stacomiR} | R Documentation |
Function that loads the loginwindow, tests connection, and then destroys the window
stacomi(gr_interface=TRUE,login_window=TRUE,database_expected=TRUE)
gr_interface |
Boolean, if |
login_window |
Boolean, if |
database_expected |
Boolean, if |
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.
To change the language use Sys.setenv(LANG = "fr") or Sys.setenv(LANG = "en")
Cedric Briand cedric.briand"at"eptb-vilaine.fr
require(stacomiR) #launch stacomi with the graphical interface ## Not run: stacomi() ## End(Not run) # launch stacomi but do not prompt for password ## Not run: stacomi(login_window=FALSE) ## End(Not run) #launch stacomi without connection to the database stacomi(gr_interface=FALSE,login_window=FALSE,database_expected=FALSE)