Rserve参数: --save vs --no-save vs --vanilla --save选项在退出Rserve时保存工作空间,--no-save则不保存。--vanilla选项启动一个干净的R环境,不加载任何用户设置或自定义文件。

11
我正在努力理解Rserve参数--save、--no-save和--vanilla之间的区别。我在文档或任何论坛上都没有看到描述它们影响的内容。请问有人知道它们的确切作用吗?
在OSX中,我需要指定其中一个才能运行Rserve。
1个回答

15

这些是R参数,在R文档和--help中都有详细说明:

$ R --help
[...]
  --save                Do save workspace at the end of the session
  --no-save             Don't save it
  --no-environ          Don't read the site and user environment files
  --no-site-file        Don't read the site-wide Rprofile
  --no-init-file        Don't read the user R profile
  --restore             Do restore previously saved objects at startup
  --no-restore-data     Don't restore previously saved objects
  --no-restore-history  Don't restore the R history file
  --no-restore          Don't restore anything
  --vanilla     Combine --no-save, --no-restore, --no-site-file,
            --no-init-file and --no-environ

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接