将 RStudio Default R Notebook 更改为空白 [英] Change RStudio Default R Notebook to blank

查看:32
本文介绍了将 RStudio Default R Notebook 更改为空白的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认的 R Notebook 有很多预填充的文本.有没有办法改变这一点,这样当一个新的 R Notebook 被创建时,它只是一个空白的笔记本?

The default R Notebook has a lot of prepopulated text. Is there a way to change this, so that when a new R Notebook is created, it is just a blank notebook?

推荐答案

在我的机器 (OSX) 上,我可以编辑位于以下位置的模板 r_markdown_notebook.Rmd:

On my machine (OSX) I can edit the template r_markdown_notebook.Rmd found at this location:

/Applications/RStudio.app/Contents/Resources/resources/templates

在 Windows 上查看 RStudio 文件夹内部:

On Windows look inside the RStudio folder:

C:\Program Files\RStudio\resources\templates

在 Ubuntu/Mint (Linux) 上,您需要 sudo:

On Ubuntu/Mint (Linux), you will need sudo:

/usr/lib/rstudio/resources/templates

这篇关于将 RStudio Default R Notebook 更改为空白的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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