2

I am developing vignette for a package in r and wish to include some citations in the document. I want the citations to look like this `Author (year) unfortunately what I have is (Author year)

---
title: "MNP: My New Package"
output: rmarkdown::html_vignette
vignette: >
  %\VignetteIndexEntry{MNP}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
bibliography: "economia.bib"
logo: logo.png
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
```

```{r setup}
library(MNP)
```

## Statement of the Research Problem

### Introduction

- [@Hall1995] and [@Politis2004] 

This is what I have here

Daniel James
  • 1,381
  • 1
  • 10
  • 28
  • 2
    Just omit the square brackets, i.e. @Hall1995. More configuration is possible with csl files. Details can be found at: https://bookdown.org/yihui/rmarkdown-cookbook/bibliography.html – tpetzoldt Jun 06 '22 at 11:12

0 Answers0