-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
64 lines (45 loc) · 2.15 KB
/
README.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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# gitgantt
<!-- badges: start -->
<!-- badges: end -->
The goal of gitgantt is to make it easier to create project plans via GitHub.
Problem: you need to show your plan in a report or funding application, but all the planned work is stashed in GitHub issues.
Solution: add lines containing `GanttStart: ` and `GanttDue: ` to your issues and use **gitgantt** to convert them into an attractive Gantt chart in a single line of code!
```{r example}
library(gitgantt)
gg_timevis(owner = "robinlovelace", repo = "gitgantt")
```
## Installation
<!-- You can install the released version of gitgantt from [CRAN](https://CRAN.R-project.org) with: -->
<!-- ``` r -->
<!-- install.packages("gitgantt") -->
<!-- ``` -->
Install the development version from [GitHub](https://github.com/) with:
``` r
remotes::install_github("robinlovelace/gitgantt")
```
## How it works
The packages uses [`gh`]() to extract issue data from GitHub and code inspired by [jennybc/analyze-github-stuff-with-r](https://github.com/jennybc/analyze-github-stuff-with-r) to clean the data into a `tibble`:
```{r}
issue_list = gg_issue_list(owner = "ATFutures", repo = "who3")
issue_df = gg_issue_df(issue_list)
issue_df
```
## Thanks
This project is inspired by and builds on:
- Excellent demonstration of using `gh` in the [analyze-github-stuff-with-r](https://github.com/jennybc/analyze-github-stuff-with-r) by Jenny Bryan
- The [GanttLab](https://www.ganttlab.org/) project, which initially inspired this effort and defined the `GanttStart: ` convention
- The [`gh-issues-gantt`](https://github.com/neyric/gh-issues-gantt) JavaScript package, which in turn builds on [jQuery.Gantt](http://taitems.github.com/jQuery.Gantt/) (raising the possibility for using this for the visualisation)
- The [`gh`](https://github.com/r-lib/gh) R package, an interface GitHub's API
- The [`vistime`](https://github.com/daattali/timevis) R package for creating interactive Gantt charts