forked from crsh/citr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
44 lines (25 loc) · 1.31 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
title: "citr: RStudio Addin to Insert Markdown Citations"
output: github_document
---
[](https://travis-ci.org/crsh/citr)
`citr` provides functions and an [RStudio addin](https://rstudio.github.io/rstudioaddins/) to search a BibTeX-file, create, and insert formatted Markdown citations into the current document.
## Installation
Until `citr` is on CRAN you can install it from this GitHub repository:
~~~{r}
devtools::install_github("crsh/citr")
~~~
## How to use citr
### The RStudio addin
Once `citr` is installed you should find the addin in the menus.

You can also define a [keyboard shortcut](https://rstudio.github.io/rstudioaddins/#keyboard-shorcuts) to call the addin.
### Using citr without RStudio
The following call searches a BibTeX-file and creates formatted Markdown citations for the results.
~~~{r}
library("citr")
md_cite("foo 2016", bib_file = "references.bib")
~~~
`md_cite()` searches author, year, title, and journal fields of your references.
## Other RStudio addins
If you are interested in other handy addins take a look at this [list](https://github.com/daattali/addinslist#readme). There you can find other useful addins, such as the [word count addin](https://github.com/benmarwick/wordcountaddin).