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

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

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

                                         Restore a Search Path
                                         还原搜索路径

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

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

Set the current session's search path to be equal to the search path described in the sessionInfo object.
设置当前会话的搜索路径相等于中描述的sessionInfo对象到搜索路径中。


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


restoreSearchPath(sessionInfo, envir = .GlobalEnv, clean = TRUE)



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

参数:sessionInfo
A sessionInfo object containing search path info  
一个sessionInfo对象,其中包含搜索路径信息


参数:envir
Environment to search for non-package objects that are referenced in the sessionInfo object.  
环境非包对象的引用在sessionInfo对象的搜索。


参数:clean
Boolean indicating whether elements in current session's search path that are not in the sessionInfo's search path should be removed.  
布尔值,指示是否应该被删除的元素在当前会话的搜索路径是不在sessionInfo的搜索路径。


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

This method is executed for it's side-effects, which is a modified search path.
执行该方法的副作用,这是一个修改的搜索路径。


注意----------Note----------

This function is somewhat experimental and so it might not be possible to restore all search path elements.
此功能是有点实验性的,所以它可能无法恢复所有的搜索路径元素。


(作者)----------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----------

sessionSummary
sessionSummary


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


## Not run: [#不运行:]
## get the session info[获取会话信息]
info <- sessionSummary()

## save to a file[#保存到一个文件]
save(info, file = "sessionInfo.rbin")

## load the session info[#加载会话信息]
load("sessionInfo.rbin")

## restore the search path[#恢复的搜索路径]
restoreSearchPath(info)

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

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-20 23:43 , Processed in 0.019505 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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