Open nrminor opened 1 year ago
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?
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.
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.
Got it. That makes sense. Thanks so much for your work and quick replies!
Hello. Just checking in to see if you have any new suggestions on this issue. Thanks!
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:Or at the very least, I need some way to automate the
Y
response. So far, I've tried using theforce()
andsink()
functions to no avail.Do you have any suggestions for how to automate or suppress these prompts? Thanks!