save.session(session)
save.session()所属R语言包:session
Save and restore session information, including loaded packages
保存和恢复会话信息,包括装载包
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Save and restore session information, including loaded packages and attached data objects.
保存和恢复会话的信息,包括加载的包和附加数据的对象。
用法----------Usage----------
save.session(file=".RSession", ...)
restore.session(file=".RSession", ...)
参数----------Arguments----------
参数:file
Filename for the session information.
文件名的会话信息。
参数:...
Optional arguments for save() or load().
可选参数为save()或load()。
Details
详细信息----------Details----------
These two functions save and restore R session information. In addition to the objects in the session, the list of currently loaded packages and the search path are (re)stored.
这两个函数保存和恢复R会话信息。除了会话中的对象列表中当前加载的包和搜索路径是(重新)存储。
Open graphics devices, sinkss, pipes, etc. will not be stored. save.session issues a warning to this effect if any graphics devices are open.
开放的图形设备,sinks的,管道等将不被保存。 save.session发出一个警告,这种效果,如果任何图形设备开放。
值----------Value----------
No return value.
没有返回值。
注意----------Note----------
Future enhancements may allow the restoration of the size,
未来的增强功能可以使恢复的大小,
(作者)----------Author(s)----------
Gregory R. Warnes <a href="mailto:greg@warnes.net">greg@warnes.net</a>
参见----------See Also----------
save, save.image,
save,save.image,
实例----------Examples----------
ls(all=TRUE) # show all data objects[显示所有的数据对象]
search() # list search path[列表搜索路径]
# save the current R session to the file "RSession.Rda"[保存当前的R会话文件“RSession.Rda”]
save.session("RSession.Rda")
## Not run: [#不运行:]
# exit R without saving data[退出R无保存数据]
q("no")
# restart R[重新启动ŕ]
R
## End(Not run)[#(不执行)]
# load a saved R session from "RSession.Rda"[载入保存的R会话“RSession.Rda”]
restore.session("RSession.Rda")
ls(all=TRUE) # show all data objects[显示所有的数据对象]
search() # list search path[列表搜索路径]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|