How do I reset all options() arguments to their default values? [duplicate]

不羁岁月 提交于 2019-11-30 17:31:20

If you restart your R session, it will reset the options to the default values. Options are saved in a list, and calling options() will show that list.

You can save the default options after restarting R:

backup_options <- options()

You can make any changes you need, and then to revert to the default options:

options(backup_options)

I never tried it myself, but the settings package seems to provide a possibility to restore the default values without previously storing them:

library(settings)
reset(options)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!