设为首页收藏本站获取积分奖励

R语言中文网

 找回密码
 立即注册
查看: 953|回复: 0

R语言包装说明packageVersion()函数-中英文对照帮助文档

[复制链接]
发表于 2020-8-21 08:08:37 | 显示全部楼层 |阅读模式
        R语言包装说明packageVersion()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:packageVersion()
R语言函数功能:包装说明
来自资源库:基础库(R语言自带)
packageVersion()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

描述-----Description-----

Parses and returns the <code>DESCRIPTION</code> file of a package as a "packageDescription".
解析并以"packageDescription"的形式返回包的<code>DESCRIPTION </ code>文件。

Utility functions return (transformed) parts of that.
实用函数返回(转换的)部分。


使用方法-----Usage-----

packageDescription(pkg, lib.loc = NULL, fields = NULL,
drop = TRUE, encoding = "")
packageVersion(pkg, lib.loc = NULL)
packageDate(pkg, lib.loc = NULL,
date.fields = c("Date", "Packaged", "Date/Publication", "Built"),
tryFormats = c("%Y-%m-%d", "%Y/%m/%d", "%D", "%m/%d/%y"),
desc = packageDescription(pkg, lib.loc=lib.loc, fields=date.fields))
asDateBuilt(built)

参数-----Arguments-----

参数pkg介绍: a character string with the package name.
带有软件包名称的字符串。

参数lib.loc介绍: a character vector of directory names of R libraries, or NULL. The default value of NULL corresponds to all libraries currently known. If the default is used, the loaded packages and namespaces are searched before the libraries.
R库或NULL目录名称的字符向量。 NULL的默认值对应于当前已知的所有库。如果使用默认值,则会在库之前搜索已加载的程序包和名称空间。

参数fields介绍: a character vector giving the tags of fields to return (if other fields occur in the file they are ignored).
给出要返回的字段标签的字符向量(如果文件中出现其他字段,则将其忽略)。

参数drop介绍: If TRUE and the length of fields is 1, then a single character string with the value of the respective field is returned instead of an object of class "packageDescription".
如果TRUEc且fields的长度为1,则返回具有相应字段值的单个字符串,而不是返回类"packageDescription"的对象。

参数encoding介绍
-----未完,待续-----,↓↓↓展开剩余72%↓↓↓
购买主题 前行需要您的支持,请赞助作者 【15 金钱】 就能浏览全部100%内容啦!(本贴一次赞助、永久可读)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|R语言中文网    

GMT+8, 2024-5-21 00:33 , Processed in 0.022560 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表