diff --git a/index.qmd b/index.qmd index 2c0b55b..c80a0ea 100644 --- a/index.qmd +++ b/index.qmd @@ -5,6 +5,7 @@ logo: logo.jpg format: html: page-layout: full + css: styles.css execute: echo: false --- @@ -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) + ) ``` diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..5390db4 --- /dev/null +++ b/styles.css @@ -0,0 +1,3 @@ +.dataTables_scrollBody { + max-height: 70vh; /* 70% of viewport height */ +} \ No newline at end of file