Learn R Programming

XML (version 0.7-1)

libxmlVersion: Get the version of the libxml library.

Description

This currently retrieves the version of the libxml library used when installing this XML package.

Usage

libxmlVersion()

Arguments

Value

  • A named list with fields
  • majorthe major version number, either 1 or 2 indicating the old or new-style library.
  • minorthe within version release number.
  • patchthe within minor release version number

Details

This computes the version at compile time. In the future we will hopefully find a way to find the run-time version.

References

http://www.w3.org/XML, http://www.xmlsoft.org, http://www.omegahat.org

Examples

Run this code
ver <- libxmlVersion()
 if(is.null(ver)) {
   cat("Relly old version of libxml
")
 } else {
   if(ver$major > 1) {
     cat("Using libxml2
")
   }
 }

Run the code above in your browser using DataLab