简体   繁体   English

rstudio中的knitr按钮

[英]knitr button in rstudio

I'm a beginner to R and Rstudio. 我是R和Rstudio的初学者。 One of my first problems is that I do not have the knitr option in rstudio, despite having installed the knitr package. 我的第一个问题之一就是我在rstudio中没有knitr选项,尽管安装了knitr包。 I have checked and I do have the last version of Rstudio. 我已经检查过,我确实有Rstudio的最新版本。 I am aware of how dumb this question is, but I can't but ask it after I tried everything. 我知道这个问题是多么愚蠢,但在我尝试了一切之后我不禁要问它。 Shockingly, I have the knitr option/button at work, where Rstudio was installed in the same fashion (apparently). 令人震惊的是,我有工作的knitr选项/按钮,其中Rstudio以相同的方式安装(显然)。 I'm attaching a screenshot of my rstudio. 我附上了我的rstudio的截图。 Any ideas? 有任何想法吗?

截图

You apparently don't have your file saved with a standard extension where it will auto-detect the file type from. 您显然没有使用标准扩展名保存文件,它会自动检测文件类型。 You can save with .Rmd or whatever is appropriate. 您可以使用.Rmd或任何适当的保存。 Alternatively in the bottom right of your source pane you should see "Text File" -> Go ahead and click and change that to R Markdown or R presentation or whatever is appropriate for your particular file. 或者在源窗格的右下角,您应该看到“文本文件” - >继续并单击并将其更改为R Markdown或R演示文稿或适合您的特定文件的任何内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM