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:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|