2016-02-28 79 views
3

所以,我如果有人知道如何更改默認的[R降價創建與下面的輸出文件,只是好奇:[R降價模板創建

--- 
title: "Untitled" 
author: "Cody Glickman" 
date: "February 27, 2016" 
output: html_document 
--- 

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>. 

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this: 

```{r} 
summary(cars) 
``` 

You can also embed plots, for example: 

```{r, echo=FALSE} 
plot(cars) 
``` 

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot. 

當我創建新的R降價文件這將是一個很好的捷徑避免每次刪除該塊並插入一個目錄。

回答

3

你可以看到this頁面瞭解詳情,但基本上你只需要創建一個template.yaml文件帶有附加Rmarkdown模板,並把它放在正確的文件夾(inst/rmarkdown/templates)。您可以從Rstudio的「從模板」或rmarkdown::draft("my_article.Rmd", template = "jss_article", package = "rticles")的菜單中創建此項目。