-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
68 lines (55 loc) · 4.42 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
65
66
67
68
---
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%"
)
```
# greta.template
<!-- badges: start -->
<!-- once you've signed into travis and set it to wath your new repository, you can edit the following badges to point to your repo -->
[](https://codecov.io/gh/greta-dev/greta.template?branch=main)
[](https://github.com/greta-dev/greta.template/actions)
<!-- badges: end -->
This is an empty repository to help you build an extension to greta. It's a [GitHub template repository](https://github.blog/2019-06-06-generate-new-repositories-with-repository-templates/), so you can make a copy to build your extension from by following these steps:
1. Click *Use this template* to the left of *Clone or download*.

1. Give this repo a new name (preferably `greta.<something>`) and create a new repo in your account.
1. Clone the repository and start filling out all the fields to make the package your own. See Jenny Bryan's [Happy Git with R](https://happygitwithr.com/push-pull-github.html) if you'd like some help with this.
**Please don't hit the fork button**, that would make a permanent link between your repository and this one!
---
#### to do list
Here's a list of things to do once you've made a copy of the template, to make sure the package is ship-shape. Maybe take a look at the corresponding parts of [greta](https://github.com/greta-dev/greta) or [tensorflow](https://github.com/rstudio/tensorflow) if you need inspiration or text to copy and adapt!
- [ ] Pick a package name (preferably with 'greta.' at the beginning). Update the package name in:
- [ ] the 'Package' field in `DESCRIPTION`
- [ ] the `library()` and `test_check()` calls in `tests/testthat.R`
- [ ] in the `@name` documentation field in `R/package.R`
- [ ] at the top of `README.Rmd`
- [ ] the repo name (if it changed since you made it)
- [ ] the R project file; rename it from `greta.template.Rproj` to `greta.<something>.Rproj`
- [ ] Come up with a helpful package title. Add it to:
- [ ] the 'Title' field in `DESCRIPTION`
- [ ] the `@title` documentation field in `R/package.R`
- [ ] at the top of your GitHub repo
- [ ] Fill in the the author details in `DESCRIPTION`
- [ ] Update the 'URL' and 'BugReports' fields in `DESCRIPTION` to point to your repo
- [ ] Decide what sort of license you want to use for your package (you are completely free to change the CC0 license in the template). See [https://choosealicense.com]() or [r-pkgs.org](https://r-pkgs.org/description.html#license) for help choosing.
- [ ] create the license file and edit the 'License' field in `DESCRIPTION` (e.g. with [the `usethis` package](https://usethis.r-lib.org/reference/licenses.html))
- [ ] Write short paragraph describing the package. Copy it to:
- [ ] the 'Description' field of `DESCRIPTION`
- [ ] the `@description` documentation field of `R/package.R`
- [ ] add a github actions badge with `use_github_actions_badge()`
- [ ] edit the [codecov](https://codecov.io) badge in `README.Rmd` to point to your package
- [ ] Write a simple example introducing the package and add it to `R/package.R`
- [ ] Update `README.Rmd` to sell to people with a sales pitch and maybe an example that creates a figure, to get people excited about your package.
- [ ] Start adding functions, documentation and examples to new R files in `R` folder
- [ ] Write some unit tests for these functions in the `tests/testthat` folder
- [ ] Delete the example function and test files `R/square.R` and `tests/testthat/test-square.R`
---
If you see something missing in this template or the to do list, please let us know via the issues, or send a pull request. We'd really appreciate it. This template comes with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms. We also hope people using the template will keep the Code of Conduct with their package code.
p.s. thanks @karthik for the awesome template-template I shamelessly copied from [karthik/binder-test](https://github.com/karthik/binder-test)