parseThemesXML          package:reposTools          R Documentation

_A _f_u_n_c_t_i_o_n _t_o _r_e_a_d _r_e_p_o_s_i_t_o_r_y _t_h_e_m_e _X_M_L

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

     This function will read in a repository theme XML file and output
     a RDA file with a list of 'reposTheme' objects specifying the
     themes for a repository.

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

     parseThemesXML(repTXML = "repThemes.xml", repTrda = "repThemes.rda", repDrda = "repdatadesc.rda")

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

 repTXML: Filename of the input XML file.

 repTrda: Filename of the output RDA file.

 repDrda: Filename of the repdatadesc file for this repository.

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

     This function is used by 'genRepos' to convert the 'repThemes.xml'
     file which specifies any repository themes in XML format into a
     list of 'reposTheme' objects and stores them in a file named
     'repThemes.rda'.

     The 'repdatadesc.rda' file must be used for cases where there is
     no package version specified for a package in a theme - in which
     case, 'parseThemesXML' will determine the highest version of that
     package in the repository and use that for the package version of
     the theme.

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

     Jeff Gentry

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

     'themes', 'reposTheme-class', 'genRepos'

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

        ## Using non-default filenames solely for this example
        exXMLfile <- system.file(file.path("themes", "repThemes.xml"),
                                 package="reposTools")
        exDDfile <- system.file(file.path("themes", "repdatadesc.rda"),
                                package="reposTools")
        exOutfile <- tempfile()

      
        parseThemesXML(repTXML=exXMLfile, repTrda=exOutfile, repDrda=exDDfile)

