-
Notifications
You must be signed in to change notification settings - Fork 0
/
recent.Rmd
55 lines (37 loc) · 991 Bytes
/
recent.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
51
52
53
54
55
---
title: "Recently added research studies"
---
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
```{css echo = F}
d-article{
padding-bottom:5px;
padding-top: 20px;
}
d-article li {
margin-bottom: 0em;
}
th, td {
white-space: nowrap;
}
```
```{r, echo = F, eval = T, message = F, warning = F}
knitr::opts_chunk$set(echo = FALSE)
library(htmltools)
library(here)
library(tidyverse)
library(knitr)
library(DT)
library(glue)
data = readRDS(here::here("data", "data_dt.rds"))
data_prep = data %>%
arrange(desc(date)) %>%
mutate(
link=paste0("list_view.html#",NCTId),
Name = paste0("<a href=", link, ">",BriefTitle,"</a>"),
date = format(date, format="%B %d, %Y")) %>%
select(Date = date, Institution = OrgFullName, Name) %>%
distinct()
```
```{r, layout = "l-body-outset"}
DT::datatable(data_prep, escape = F, options = list(scrollX=TRUE, pageLength=5), rownames = FALSE)
```