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

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

[复制链接]
发表于 2012-2-26 10:18:53 | 显示全部楼层 |阅读模式
loadFromUrl(PAnnBuilder)
loadFromUrl()所属R语言包:PAnnBuilder

                                        Load Files from a Web Site
                                         从网站加载文件

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

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

Given an url, these functions download a file from a given web site and unzip the file if it is compressed.
鉴于一个网址,这些功能从一个给定的网站下载一个文件,并解压缩文件,如果它被压缩。


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


loadFromUrl(srcUrl, destDir = "", verbose=FALSE)
validateUrl(srcUrl)
unzipFile(fileName, where = file.path(.path.package("PAnnBuilder"),
"data"), isgz = FALSE)



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

参数:srcUrl
srcUrl a character string for the url of the file to be downloaded
srcUrl要下载文件的URL字符串


参数:destDir
destDir a character string for a loacal directory where the file to be downloaded will be saved
destDir为loacal目录所在的文件被下载的字符串将被保存


参数:where
where same as destDir
where一样DESTDIR


参数:isgz
isga a boolean indicating whether the downloaded file is a gz file
isga一个布尔值,指示是否下载的文件是一个gz文件


参数:fileName
fileName a character string for the name of a file  
fileName一个文件名字符串


参数:verbose
A booline indicating whether to print extra information.
一个booline指示是否打印额外的信息。


Details

详情----------Details----------

These functions are used by various objects in package pubRepo to download data files from a web site. If the file is compressed, decompressing will be applied and the path for the decompressed file will be returned.
这些功能包pubRepo用于各种物体从一个网站下载的数据文件。如果该文件被压缩,解压缩将用于解压缩文件的路径将被退回。

validateUrl will terminate the process if an invalid url is passed.
validateUrl将终止该进程,如果传递一个无效的URL。

unzipFile decompress the file passed as fileName.
unzipFile解压缩文件作为文件名传递。


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

loadFromUrl returns a character string for the name of the file saved locally.
loadFromUrl返回一个本地保存的文件名称的字符串。


参考文献----------References----------

assembling annotation for genomic data.Bioinformatics 19(1), 155-156.

举例----------Examples----------


## Not run: [#无法运行:]
# Get a dummy data file from Bioconductor web site[从Bioconductor网站获取虚拟数据文件]
data <-
loadFromUrl("http://www.bioconductor.org/datafiles/wwwsources/Tll_tmpl.gz",
destDir = "")
unlink(data)

## End(Not run)[#结束(不运行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-2-1 22:55 , Processed in 0.034988 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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