-
Notifications
You must be signed in to change notification settings - Fork 0
add claude.md #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
add claude.md #58
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,87 @@ | ||||||
| # CLAUDE.md | ||||||
|
|
||||||
| This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. | ||||||
|
|
||||||
| ## Package Overview | ||||||
|
|
||||||
| PKPDmap is an R package implementing Maximum A Posteriori (MAP) Bayesian estimation and non-parametric fitting for pharmacokinetic/pharmacodynamic (PK/PD) data. It depends heavily on [PKPDsim](https://github.com/InsightRX/PKPDsim) (also an InsightRX package) for ODE-based PK/PD simulation. | ||||||
|
|
||||||
| ## Common Commands | ||||||
|
|
||||||
| All development uses standard R/devtools workflows (no Makefile): | ||||||
|
|
||||||
| ```r | ||||||
| # Load package for interactive development | ||||||
| devtools::load_all() | ||||||
|
|
||||||
| # Run all tests | ||||||
| devtools::test() | ||||||
|
|
||||||
| # Run a single test file | ||||||
| devtools::test(filter = "get_map_estimates") | ||||||
|
|
||||||
| # Regenerate documentation from roxygen2 comments | ||||||
| devtools::document() | ||||||
|
|
||||||
| # Full R CMD check (as done in CI) | ||||||
| devtools::check("--no-manual --as-cran") | ||||||
|
|
||||||
| # Install PKPDsim dependency from GitHub (requires PAT_TOKEN) | ||||||
|
||||||
| # Install PKPDsim dependency from GitHub (requires PAT_TOKEN) | |
| # Install PKPDsim dependency from GitHub (requires GITHUB_PAT locally; in CI this comes from secrets.PAT_TOKEN) |
Copilot
AI
Apr 1, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the pipeline diagram, parse_*()/ includes a trailing /, which reads like a typo and is inconsistent with the other entries. Consider removing the slash to keep the diagram clean.
| ├── parse_*()/ # ~10 parse_ functions normalize inputs | |
| ├── parse_*() # ~10 parse_ functions normalize inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devtools::check("--no-manual --as-cran")passes both flags as a single argument string;R CMD checkexpects them as separate args, and this doesn’t match the CI workflow (which passes--no-manualand--as-cranseparately). Update the example to pass a character vector of args so local checks behave like CI.