找不到 .Rprofile 文件 [英] Cannot locate .Rprofile file

查看:62
本文介绍了找不到 .Rprofile 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的 .Rprofile 添加一些自定义.但是,我似乎找不到该文件.

I want to add some customization to my .Rprofile. However, I cannot seem to find the file.

许多人说它位于我的 ~/文件夹中.我已取消隐藏所有隐藏文件,但似乎没有找到.还查看了 R.Frameworks.

Many have said it is located in my ~/ folder. I have unhidden all my hidden files and do not seem to find it. Also looked in R.Frameworks.

没有找到任何东西.我假设我有一个,因为 R 启动并且工作正常.

Not finding anything. I assume that I have one, as R fires up and works fine.

还有其他搜索方法吗?

我的系统是 Mac OSX 10.8、R 3.0、RStudio

My system is Mac OSX 10.8, R 3.0, RStudio

推荐答案

我最喜欢的方式是打开一个终端窗口,然后输入:

my favorite way would be to open a Terminal window, and type:

touch ~/.Rprofile
open ~/.Rprofile

open -a Textedit ~/.Rprofile

这样您就可以避免 a) 覆盖您没有找到的现有文件的可能性;b) 摆弄 Finder 隐藏/显示系统文件的方式;c) 过分热衷于添加文件扩展名或不喜欢系统文件的文本编辑器/操作系统的问题.

this way you save yourself from a) the possibility of overwriting an existing file that you didn't find; b) fiddling with the way the Finder hides/shows system files; c) problems with overzealous text editors/OS that insist on adding file extensions, or don't like system files.

这篇关于找不到 .Rprofile 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆