保存重要,未完的工作空间

save.image("hello.RData") 保存整个工作空间到文件,加载方式:

  • 下次打开默认工作目录时如果有.RData文件时会自动加载
  • 通过load() 读取工作空间

  #save 是可以选择些变量保存到文件,如save(numbers_1, file = "hello1.RData")

  

保存重要的历史命令,方便整理:

  • Rstudio右上角的保存按钮
  • save.history("hello.Rhistory")

  读取方式:

  loadhistory("hello.history")

注:保存时候注意后缀,方便自己识别文件类型

本文来自博客园,作者:BioinformaticsMaster,转载请注明原文链接:https://www.cnblogs.com/koujiaodahan/p/15755473.html

原文地址:https://www.cnblogs.com/koujiaodahan/p/15755473.html