require(stacomiR)
#launch stacomi
if (FALSE) {
stacomi(database_expected=TRUE, datawd='~',sch= "iav")
}
# launch stacomi without connection to the database
stacomi(database_expected=FALSE)
# launch stacomi with options
options(
stacomiR.dbname = "bd_contmig_nat",
stacomiR.host = readline(prompt = "Enter host: "),
stacomiR.port = "5432",
stacomiR.user = readline(prompt = "Enter user: "),
stacomiR.password = readline(prompt = "Enter password: ")
)
# another usefull option to print all queries run by stacomiR to the console
options('stacomiR.printqueries'= TRUE)
Run the code above in your browser using DataLab