[英]Why does my R Markdown file not output a citation from Bib
I am using R Markdown
to create a document with citations. 我正在使用
R Markdown
创建带有引文的文档。 But the citation doesn't reflect on the pdf document generated. 但是引用不反映在生成的pdf文档中。 Using
RStudio Version 0.98.994
and R 3.1
使用
RStudio Version 0.98.994
和R 3.1
This is the .rmd
file 这是
.rmd
文件
---
title: "Untitled"
author: "keniajin"
date: "Tuesday, October 14, 2014"
output: pdf_document
---
This is an R Markdown document.
```{r}
require(knitcitations)
summary(cars)
bib <- read.bibtex("ieetutorial.bib")
```
You can also embed citations, for example:
Smith says blah [-@author00]
The BibTeX
file is BibTeX
文件是
@Book{author00,
author = {Author},
title = {Title},
publisher = {Publisher},
year = 2000}
尝试将rmd文件的最后一行更改为
Smith says blah `r citep(bib[["author00"]])`
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.