-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02_methods.Rmd
52 lines (37 loc) · 1.02 KB
/
02_methods.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
45
46
47
48
49
50
Material and Methods
============
```{r}
# Load bibliographic references manager
library(RefManageR)
```
### Function
Start with CAPITAL letters.
- `Cite()`
- `AutoCite()`
```{r, eval = FALSE, echo = FALSE}
library(rorcid)
library(dplyr)
d_tkubo_works <- rorcid::orcid_id("0000-0002-4832-5539") %>%
works() %>%
use_series(data) %>%
filter(`work-citation.work-citation-type` == "BIBTEX",
grepl("^[A-Z]", `journal-title.value`)) %>%
select(`work-citation.citation`)
bib <- c("10.1016/j.ecolecon.2017.07.032", "10.1016/j.gecco.2017.03.007",
"10.1007/s10344-016-0994-0", "10.1016/j.biocon.2014.05.019",
"10.1016/j.biocon.2014.05.019") %>%
purrr::map(ReadCrossRef)
bib %>% purrr::walk(WriteBib, file = "sample.bib", biblatex = TRUE, append = TRUE)
```
Setup R Markdown chunk.
```
library(RefManageR)
bib <- ReadBib("my_bibliograpy.bib")
```
In R Markdown file.
```
Blah blah blah 'r Citet(bib, "author14")'. # Author (2014)
```
Options
- `.opts = list(hyperlink = "to.doc")`
- `.opts = list(hyperlink = FALSE)`