Skip to content

Commit

Permalink
Merge pull request #54 from HTAhackathon2024/interactive-table
Browse files Browse the repository at this point in the history
Interactive table
  • Loading branch information
bisacciamd authored Sep 14, 2024
2 parents d2878a6 + 5f89067 commit db8ca64
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ Imports:
gh,
logger,
purrr,
tools
tools,
DT
Suggests:
testthat,
knitr,
Expand Down
19 changes: 18 additions & 1 deletion index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ logo: logo.jpg
format:
html:
page-layout: full
css: styles.css
execute:
echo: false
---
Expand All @@ -20,5 +21,21 @@ This project was started as part of a R-HTA Hackathon held at the University of

```{r}
dat <- read.csv("data/data.csv")
DT::datatable(dat)
#PLACEHOLDER - WILL MOVE TO PROCESSING SCRIPTS
names(dat) <- c("Package",
"Title",
"Description",
"License",
"Authors",
"Maintainer",
"Date published (CRAN)",
"Has tests?",
"Has Vingettes?",
"# contributors",
"On CRAN?")
DT::datatable(dat,
options = list(
scrollX = TRUE,
scrollY = TRUE)
)
```
3 changes: 3 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.dataTables_scrollBody {
max-height: 70vh; /* 70% of viewport height */
}

0 comments on commit db8ca64

Please sign in to comment.