-
Notifications
You must be signed in to change notification settings - Fork 14
Developing Optmatch Notes
Josh Errickson edited this page Mar 24, 2022
·
13 revisions
- In DESCRIPTION, increment version number.
- In DESCRIPTION, remove
Remotes: josherrickson/rrelaxiv - Ensure all checks pass
make check_winmake check_win_devmake check_win_oldmake check_mac-
make check_rhub- this one tends to produce spurious warnings/errors/notes.
- Run
devtools::release(args=c('--compact-vignettes=gs+qpdf') ). Thecompact-vignettesmay not be relevant since vignettes were switched to HTML but shouldn't cause any harm. - Go through the series of questions that
releaseasks.
Once CRAN accepts the submission:
- Place a tag of variety
vX.X.Xon the commit the release is based on. - In DESCRIPTION, append .9001 to the version number.
- In DESCRIPTION, re-add
Remotes: josherrickson/rrelaxiv
To ensure the pkgdown site builds properly, follow instructions below to built the release version.
When pushing to the master branch, the pkgdown workflow will automatically update the pkgdown site, the development site if the version number ends of .900X, and the release site otherwise.
If the release site needs to get modified, the following steps can be taken:
- Checkout the tag'd commit with the most recent release:
git checkout <commit hash>. - Convert to a branch with
git switch -C <branchname>. - Make any required modifications:
- Modify any files (e.g. README.md) directly.
- You can use
git checkout master -- <list of files>to pull files from the HEAD of master. - Ensure that DESCRIPTION has a
Remotes: josherrickson/rrelaxivline
- Commit any changes and push this new branch to github:
git push -u origin <branchname> - Re-run the Github Action on the branch.
- On Github, goto Actions, choose "pkgdown" on left hand side.
- There should be a message "This workflow has a workflow_dispatch event trigger" and next to it a dropdown menu called "Run Workflow".
- In this dropdown, choose the branch you just pushed and click "Run Workflow"
- Both the "pkgdown" followed by "pages-build-deployment" actions should run without error.
- Once you are satisfied with the results, you can delete both the remote branch and local branch (
git branch -d <branchname>).
Because of the rrelaxiv external dependence, the DESCRIPTION file requires the Remotes: josherrickson/rrelaxiv line, but it should not be pushed to CRAN. This means we'll need to run this after every release.
This is based upon this vignette in the pkgdown package. (I can't find a link to the built version of it.)