Skip to content
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

Cancer incidence: improve error for 'cervix' cancer type #128

Open
vsriram24 opened this issue Sep 6, 2024 · 0 comments
Open

Cancer incidence: improve error for 'cervix' cancer type #128

vsriram24 opened this issue Sep 6, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@vsriram24
Copy link

Example code:

allStates = cancerprof::incidence_cancer(
  area = "WA",
  areatype = "hsa",
  cancer = "cervix",
  race = "All Races (includes Hispanic)",
  sex = "both sexes",
  age = "all ages",
  stage = "all stages",
  year = "latest 5 year average"
)

Error should be:

Error in `cancerprof::incidence_cancer()`:
! For this cancer type, sex must be females

However, error currently is:

Error in 'process_resp()':
! Invalid input, please check documentation for valid arguments.
Backtrace:
 1. cancerprof::incidence_cancer(...)
 2. cancerprof:::process_resp(resp, "incidence")
@vsriram24 vsriram24 added the documentation Improvements or additions to documentation label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant