buildChromLocation         package:annotate         R Documentation

_A _f_u_n_c_t_i_o_n _t_o _g_e_n_e_r_a_t_e _a_n _i_n_s_t_a_n_t_i_a_t_i_o_n _o_f _a _c_h_r_o_m_L_o_c_a_t_i_o_n _c_l_a_s_s

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

     This function will take the name of a data package and build a
     chromLocation object representing that data set.

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

       buildChromLocation(dataPkg)

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

 dataPkg: The name of the data package to be used

_D_e_t_a_i_l_s:

     The requested data set must be available in the user's
     '.libPaths()', and the function will throw an error if this is not
     the case.

     If the data package is present, the necessary information will be
     extracted from the data package and a 'chromLocation' object will
     be created.

_V_a_l_u_e:

     A 'chromLocation' object representing the specified data set.

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

     Jeff Gentry

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

     have_ann_pkg <- suppressWarnings(require("hgu95av2.db", quietly=TRUE))
     if (!have_ann_pkg)
       have_ann_pkg <- suppressWarnings(require("hgu95av2", quietly=TRUE))
     if (have_ann_pkg) {
          z <- buildChromLocation("hgu95av2")
     } else print("This example requires the hgu95av2.db or hgu95av2 package")

