remove r workspace in ubuntu

你。 提交于 2019-12-13 02:34:11

问题


folks

I just installed ubuntu R, but when I saved my R work space, it loaded automatically every time when i launch R from the terminal. This had disabled couple of functions in the package i wanted to use.

My questions is how to remove my r work space in ubuntu? any idea where the location of the file is ? I tried suggestions from this site: http://r.789695.n4.nabble.com/How-to-permanently-remove-Previously-saved-workspace-restored-td3041515.html , but i did not really give a clear solution to it.

Best.


回答1:


Its a file called .RData in your working directory:

> getwd()
[1] "/home/rowlings"
> system("ls .RData")
.RData

Because it starts with a dot its not visible in the unix shell unless you do ls -a.




回答2:


Try removing ~/.RData

In case that is hard for you to understand, ~/ is the Unix way of saying "your home directory", and the ~/.RData file is the "default" workspace if you didn't explicitly set a different working directory.



来源:https://stackoverflow.com/questions/22305973/remove-r-workspace-in-ubuntu

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