找回密码
 注册
查看: 418|回复: 0

R语言 SoDA包 packageAdd()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:23:23 | 显示全部楼层 |阅读模式
packageAdd(SoDA)
packageAdd()所属R语言包:SoDA

                                         Add contents of R source files to a source package
                                         源码包添加,R源文件的内容

                                         译者:生物统计家园网 机器人LoveR

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

The contents of one or more files of R  source code will be added to the specified source package: the files themselves will be added to the R directory, and shells for the  documentation will be added to the man directory.  Unlike package.skeleton, this function does not require one function per source file and supports both class and method definitions.
R源代码的一个或多个文件的内容将被添加到指定的源包文件本身将被添加到R目录,和壳的文件将被添加到man目录。不像package.skeleton,这个功能并不需要每个源文件中的一个函数,同时支持类和方法的定义。


用法----------Usage----------


packageAdd(pkg, files, path = ".", document = TRUE)



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

参数:pkg
The name of the package.  It must be attached to the session.  
的包的名称。它必须连接到会话。


参数:files
The names of the files containing the R source to add to the package.  
R源文件,其中包含的名称添加到包中。


参数:path
The directory under which the source for pkg is stored.  
目录下的源代码pkg存储。


参数:document
Should a skeleton documentation for the objects be generated?  
骨架文档的对象产生的呢?


Details

详细信息----------Details----------

The file of source code is copied unchanged to the  "R" subdirectory of the source package.  A shell of documentation is initialized for all the objects created by the evaluating the file.
源代码的文件原样复制的"R"子目录中的源代码包。评价中的文件创建的所有对象的初始化为一个shell文件。

If the file generates several function objects, the documentation shells for all of these, as generated by the prompt() function, are merged and stored under the name of the file, suffix ".Rd", in the "man" subdirectory of the package.
如果该文件生成的几个函数对象,文档壳,所有这些,所产生的prompt()函数,合并和存储的文件,后缀".Rd"的名义下,在<X >子目录的包。

Currently method and class documentation are generated on separate files rather than being merged with function documentation.
目前的方法和类的文档生成单独的文件,而不是被合并函数的文档。


值----------Value----------

Nothing useful.  Called for its side effects.
没什么用处。呼吁它的副作用。


参见----------See Also----------

promptAll
promptAll


实例----------Examples----------


## Not run: [#不运行:]
packageAdd("SoDA", "triDiagonal.R", "~/RPackage")

## End(Not run)[#(不执行)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

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

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-9 01:32 , Processed in 0.028644 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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