Query the version and available features of the libxml library.
查询版本和可用功能的libxml库。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
libxmlVersion retrieves the version of the libxml library used when installing this XML package. libxmlFeatures returns a named logical vector indicating which features are enabled.
libxmlVersion检索libxml库的版本,安装时使用这个XML包。 libxmlFeatures返回一个已命名逻辑向量,指出哪些功能被启用。
用法----------Usage----------
libxmlVersion(runTime = FALSE)
libxmlFeatures()
参数----------Arguments----------
参数:runTime
a logical value indicating whether to retrieve the version information describing libxml when the R package was compiled or the run-time version. These may be different if a) a new version of libxml2 is installed after the package is installed, b) if the package was installed as a binary package built on a different machine.
一个逻辑值,该值指示是否要撷取的版本信息描述的libxml的R包编译时或运行时版本。这些可能是不同的,如果a)新版本的libxml2安装包后安装,B),如果该软件包是建立在不同的机器上安装的二进制包。
值----------Value----------
libxmlVersion returns a named list with fields
libxmlVersion返回一个已命名的字段列表
参数:major
the major version number, either 1 or 2 indicating the old or new-style library.
主版本号,1或2,表示旧的或新的风格库。
参数:minor
the within version release number.
内版的版本号。
参数:patch
the within minor release version number
内次要版本号
libxmlFeatures returns a logical vector with names given by: [1] "THREAD" "TREE" "OUTPUT" "PUSH" "READER" [6] "PATTERN" "WRITER" "SAX1" "FTP" "HTTP" [11] "VALID" "HTML" "LEGACY" "C14N" "CATALOG" [16] "XPATH" "XPTR" "XINCLUDE" "ICONV" "ISO8859X" [21] "UNICODE" "REGEXP" "AUTOMATA" "EXPR" "SCHEMAS" [26] "SCHEMATRON" "MODULES" "DEBUG" "DEBUG_MEM" "DEBUG_RUN" [31] "ZLIB" Elements are either TRUE or FALSE indicating whether support was activatd for that feature, or NA if that feature is not part of the particular version of libcurl.
libxmlFeatures返回一个逻辑向量名: [1] "THREAD" "TREE" "OUTPUT" "PUSH" "READER" [6] "PATTERN" "WRITER" "SAX1" "FTP" "HTTP" [11] "VALID" "HTML" "LEGACY" "C14N" "CATALOG" [16] "XPATH" "XPTR" "XINCLUDE" "ICONV" "ISO8859X" [21] "UNICODE" "REGEXP" "AUTOMATA" "EXPR" "SCHEMAS" [26] "SCHEMATRON" "MODULES" "DEBUG" "DEBUG_MEM" "DEBUG_RUN" [31] "ZLIB" 元素是TRUE或FALSE表示是否支持该功能activatd,或NA,如果特点是不特定版本的libcurl的一部分。
(作者)----------Author(s)----------
Duncan Temple Lang
参考文献----------References----------
实例----------Examples----------
ver <- libxmlVersion()
if(is.null(ver)) {
cat("Relly old version of libxml\n")
} else {
if(ver$major > 1) {
cat("Using libxml2\n")
}
}