Skip to content

Repository files navigation

Code-Ocean-Capsule-Template

Template to create new Code Ocean Capsules for NIDAP

Using this template

Initial setup

  1. Create a new repo from this template.
  2. Run the init workflow in github actions.

On Code Ocean

  1. Import this repo into Code Ocean as a new capsule.
  2. Switch to the dev branch.
  3. Edit the capsule metadata with the capsule name and description, choose your starter environment if needed.
  4. Edit the README with the capsule URL and other info.
  5. Commit and push your changes from Code Ocean to GitHub.

First Pull Request

  1. On GitHub, open a Pull Request to merge the dev branch into main.
  2. Ensure you have addressed all TODO comments in the repo, and delete the comments once complete.
  3. If the init workflow ran successfully, delete the workflow file: .github/workflows/init.yml.
  4. Delete these template instructions from the README (everything between the start-template and end-template comments).
  5. Review the PR and merge it if everything looks correct and the CI checks succeed.

Develop your capsule

  • 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.

About

Template to create new Code Ocean Capsules for NIDAP

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages