parseThemesXML {reposTools}R Documentation

A function to read repository theme XML

Description

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.

Usage

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

Arguments

repTXML Filename of the input XML file.
repTrda Filename of the output RDA file.
repDrda Filename of the repdatadesc file for this repository.

Details

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.

Author(s)

Jeff Gentry

See Also

themes, reposTheme-class, genRepos

Examples

   ## 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)

[Package reposTools version 1.8.0 Index]