Template to create new Code Ocean Capsules for NIDAP
- Create a new repo from this template.
- Run the
initworkflow in github actions.
- Import this repo into Code Ocean as a new capsule.
- Switch to the
devbranch. - Edit the capsule metadata with the capsule name and description, choose your starter environment if needed.
- Edit the README with the capsule URL and other info.
- Commit and push your changes from Code Ocean to GitHub.
- On GitHub, open a Pull Request to merge the
devbranch intomain. - Ensure you have addressed all TODO comments in the repo, and delete the comments once complete.
- If the
initworkflow ran successfully, delete the workflow file:.github/workflows/init.yml. - Delete these template instructions from the README (everything between the
start-templateandend-templatecomments). - Review the PR and merge it if everything looks correct and the CI checks succeed.
- Use GitHub Flow for contributing changes: make a branch, make your edits in the branch, then open a Pull Request to merge your branch with main.
- Edit the main script (
code/main.R) and the app panel (.codeocean/app-panel.json). Ensure every parameter in the app panel is also a CLI argument in the main script. - Write or edit tests in
tests/testthat/to ensure the capsule functionality is covered. Always write tests when contributing bug fixes and new features.