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

R语言中文网

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

R语言准时评估eval.within.time()函数-中英文对照帮助文档

[复制链接]
发表于 2021-2-19 22:50:06 | 显示全部楼层 |阅读模式
        R语言准时评估eval.within.time()函数-中英文对照帮助文档

                                         By MicroRbt Martinez PhD

R语言函数名:eval.within.time()
R语言函数功能:准时评估
来自资源库:Bionconductor-software
eval.within.time()函数所属R语言包:所在R包具体名称、包功能的中英文双语描述见正文后面'--所在R语言包信息--'部分。

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

Evaluate an R expression in a fork within a given time frame
在给定时间范围内评估派生中的R表达式


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

eval.within.time(expr, secs, dsecs = c(0.001, 0.1), time = as.difftime(secs,
units = "secs"), verbose = FALSE, write.obj = saveRDS,
read.obj = readRDS, make.con = tempfile, cleanup.con = function(con) if
(file.exists(con)) unlink(con), touch.con = function(con)
writeLines(character(), con), con.touched = file.exists,
make.signal.con = make.con, cleanup.signal.con = cleanup.con)

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

参数expr介绍: Expression to evaluate
表达评估

参数secs介绍: Seconds to timeout. Example: 10. Ignored if time is provied.
超时秒数。示例:10.忽略是否提供了time。

参数dsecs介绍: Seconds for parent process to sleep between checking the child process. It will be recycled to length 2. The first interval will be the first element, then each time it will wait twice as long until the interval is at least as long as the second element, then it will wait the second elemtn. This keep the ratio of time required to run and time actually taken to run close to 1 without having excessive checking for longer processes. Default: c(0.001, 0.1) (seconds).
父进程在检查子进程之间休眠的秒数。它将被回收为长度2。第一个间隔将是第一个元素,然后每次它将等待两倍的时间,直到该间隔至少与第二个元素一样长,然后它将等待第二个elemtn。这样可以将运行所需的时间与实际运行所需的时间之比保持在接近1的水平,而无需过多检查较长的过程。默认值:c(0.001,0.1)(秒)

参数time介绍: difftime object giving the timeout interval. Default: as.difftime(secs, units = "secs"), which simply means to build a difftime object from the secs argument. If this argument is provided then secs is ignored.
difftime对象提供超时间隔。默认值:as.difftime(secs, units = "secs"),这仅表示从secs参数构建difftime对象。如果提供此参数,则将忽略secscc。


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-27 02:30 , Processed in 0.024848 second(s), 20 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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