You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
devtools::document() # generate package meta data and man files
9
7
devtools::build() # build package
8
+
9
+
```
10
+
11
+
## Validating the package
12
+
13
+
```r
10
14
styler::style_pkg() # format code
11
-
lintr::lint_package() # lint package
15
+
lintr::lint_package() # lint code
16
+
12
17
devtools::test() # test package
13
18
devtools::check() # check package for errors
14
19
```
15
20
16
-
## Release Process
21
+
## Developing the documentation site
22
+
23
+
The [documentation site](https://cmu-delphi.github.io/epidatr/) is built off of the `main` branch. The `dev` version of the site is available at https://cmu-delphi.github.io/epidatr/dev.
24
+
25
+
The documentation site can be previewed locally by running in R
26
+
27
+
```r
28
+
pkgdown::build_site(preview=TRUE)
29
+
```
30
+
31
+
The `main` version is available at `file:///<local path>/epidatr/docs/index.html` and `dev` at `file:///<local path>/epidatr/docs/dev/index.html`.
32
+
33
+
You can also build the docs manually and launch the site with python. From the terminal, this looks like
34
+
```bash
35
+
R -e 'devtools::document()'
36
+
python -m http.server -d docs
37
+
```
38
+
39
+
For `pkgdown` to correctly generate both public (`main`) and `dev` documentation sites, the package version in `DESCRIPTION` on `dev` must have four components, and be of the format `x.x.x.9000`. The package version on `main` must be in the format `x.x.x`.
40
+
41
+
The documentation website is updated on push or pull request to the `main` and `dev` branches.
42
+
43
+
## Release process
44
+
45
+
### Manual
46
+
47
+
TBD
48
+
49
+
### Automated (currently unavailable)
17
50
18
51
The release consists of multiple steps which can be all done via the GitHub website:
19
52
@@ -25,8 +58,3 @@ The release consists of multiple steps which can be all done via the GitHub webs
25
58
2. create another [Pull Request](https://github.com/cmu-delphi/epidatr/pulls) to merge the changes back to the `dev` branch
26
59
3. create a [GitHub release](https://github.com/cmu-delphi/epidatr/releases) with automatically derived release notes
0 commit comments