forked from KUBDatalab/Library-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contribute.Rmd
70 lines (48 loc) · 1.75 KB
/
contribute.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: Library Labs
output:
html_document
htmlwidgets: TRUE
always_allow_html: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
source("rmd_config.R")
library(jsonlite)
library(tidyverse)
library(knitr)
```
## How to contribute
We would like this to be a community driven page.
You can contribute in several ways:
## Update your data
Maybe we have gotten your data wrong. Maybe there is simply something missing.
Go to the [repo](https://github.com/KUBDatalab/Library-labs), and place pull request for a change in the json-file
corresponding to your lab. The relevant file is listed in the table below.
## Add your data
Maybe we have forgotten about you. Maybe we simply did not know that you
exist. Or maybe we have not got to you yet.
Go to the [repo](https://github.com/KUBDatalab/Library-labs), grab the template
json-file, fill out your information, and place a pull request for adding the file.
Instructions on what should be added are (will be) in the template.
Try to keep special characters and whitespace out of the filename.
## Contribute to the project.
This was hacked together during a couple of afternoons, including the time
taken to read the *all* the documentation on markdown::render().
There are probably an infinity of improvements that can be made.
Fork the project, make it better, make a pull-request. We would be so grateful!
Cheers
Lars & Christian
## Which json-file is mine?
```{r læsfiler, echo = F}
json_files <- list.files(path = "data/", full.names = T)
json_files <- json_files[!grepl("template.json", json_files)]
json_files %>%
as_tibble() %>%
mutate(data = map(value, fromJSON)) %>%
unnest(data) %>%
select("jsonfile" = value, name) %>%
unnest(name) %>%
kable()
```
KUB Datalab