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

Possible to suppress "Is this a location of interest? (Y/N)" prompts? #102

Open
nrminor opened this issue Feb 28, 2023 · 5 comments
Open

Comments

@nrminor
Copy link

nrminor commented Feb 28, 2023

I'd like to run the outbreak.info getPrevalence() function as part of a high-throughput workflow on an HPC cluster. For context, that part of the workflow is meant to download prevalence data for each United States Health and Human Services region and use those data to run some statistics. In order to do so, I need a way to suppress the user prompts I get when I try to download each state. The prompts look like this:

Is this a location of interest? (Y/N):

Or at the very least, I need some way to automate the Y response. So far, I've tried using the force() and sink() functions to no avail.

Do you have any suggestions for how to automate or suppress these prompts? Thanks!

@malkuzweny
Copy link
Collaborator

Hello,

If you've correctly spelled the exact names of the states that you want to grab data from, then you should not be getting the prompt. Can you check if that's the case?

@nrminor
Copy link
Author

nrminor commented Feb 28, 2023

I don't believe any of the spellings are incorrect. These are the character strings I'm looping through to gather prevalence data:

> region_states
[1] "Illinois"  "Indiana"   "Michigan"  "Minnesota" "Ohio"      "Wisconsin"

Interestingly, I'm only getting prompted for Indiana and Ohio.

@malkuzweny
Copy link
Collaborator

malkuzweny commented Feb 28, 2023

Thanks. There are U.S. counties named Indiana and Ohio (in addition to the states themselves), which is why you're only being prompted for those. Let me work on this and get back to you with a solution.

@nrminor
Copy link
Author

nrminor commented Feb 28, 2023

Got it. That makes sense. Thanks so much for your work and quick replies!

@nrminor
Copy link
Author

nrminor commented Mar 9, 2023

Hello. Just checking in to see if you have any new suggestions on this issue. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants