aRTconn-createDb             package:aRT             R Documentation

_C_r_e_a_t_e _a _n_e_w _d_a_t_a_b_a_s_e

_D_e_s_c_r_i_p_t_i_o_n:

     Create a new database from a virtual connection and returns a
     connection to it.

_U_s_a_g_e:

     ## S4 method for signature 'aRTconn':
     createDb(object, dbname, delete=FALSE)

_A_r_g_u_m_e_n_t_s:

  object: Object of class 'aRTconn'.

  dbname: Database name.

  delete: Delete the database if it already exists? Default is FALSE.

_A_u_t_h_o_r(_s):

     Pedro Ribeiro de Andrade

_S_e_e _A_l_s_o:

     'openDb' opens (without create) databases. 'aRTconn' shows the
     description of this class.

_E_x_a_m_p_l_e_s:

     ## Not run: 
     con=openConn()
     database = createDb(con, "database")
     dbx = createDb(con, "database") # error, database exists
     db = createDb(con, "database", delete=TRUE) # OK
     ## End(Not run)

