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

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

[复制链接]
发表于 2012-9-30 01:31:59 | 显示全部楼层 |阅读模式
restoreSession(sessionTools)
restoreSession()所属R语言包:sessionTools

                                         Restore an R Session
                                         恢复的R会话

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

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

A wrapper function for restoring a session from a binary file.
包装器函数从二进制文件中恢复会话。


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


restoreSession(file = "session.RData", envir = .GlobalEnv, clean = TRUE)



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

参数:file
path to an R binary file  
路径的R的二进制文件


参数:envir
the environment into which the objects should be restored.  
应恢复到其中的对象的环境。


参数:clean
boolean indicating whether the environment should be purged prior to restoring objects  
布尔值,指示的环境是否应清除之前恢复对象


Details

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

This function restores an entire workspace by calling restoreObjects, followed by calls to restorePackages, restoreSearchPath and restoreOptions if the file contains an object named .sessionInfo, that must be generated by a call to sessionSummary
此功能恢复的整个工作区通过调用restoreObjects,然后调用restorePackages,restoreSearchPath和restoreOptions,如果文件中包含一个的对象。sessionInfo,必须由调用sessionSummary


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

This function is called for it's side-effects
这个函数被调用时,它的副作用


(作者)----------Author(s)----------



Matthew D. Furia <a href="mailto:matt.furia@sagebase.org">matt.furia@sagebase.org</a>

<a href="https://github.com/MattNapsAlot">https://github.com/MattNapsAlot</a>




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

restoreObjects, restoreSearchPath, restorePackages, restoreOptions, sessionSummary, saveSession
restoreObjects,restoreSearchPath,restorePackages,restoreOptions,sessionSummary,saveSession


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


## Not run: [#不运行:]
## save the session[#保存会话]
saveSession(file="sessionInfo.rbin")

## restore a saved session[#恢复已保存的会话]
restoreSession(file="sessionInfo.rbin")

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

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 02:06 , Processed in 0.022054 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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