-
Notifications
You must be signed in to change notification settings - Fork 12
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
handle excel sheets #190 #191
Conversation
It's a thing of beauty - great work! Yes, I think for sure we want to suppress the warning if the |
I hadn't meant to use that language but maybe it should be a warning rather than a message? |
Is it still handy for the user to have have the other sheets printed to the console? e.g. everything else except |
My thinking is that if someone is already specifying a sheet they likely are aware that multiple sheets exist. That sheet in that resource in that record is the end point of their data discovery journey. At that point it feels we should keep quiet in the console since they don't need any more help. I am just conscious that bcdata is already quite chatty. |
I think both points are good... I think one point in favour of Steph's argument is that if you want a different sheet you need to run the function again without the |
I do like the idea of providing users some way of accessing the names of the sheets. Would a function be overkill? |
I think the conversation of providing a method to programmatically access sheet names could be deferred to a) the first time a user requests it or b) how the process more fully fleshed out during the writing of #192. With that in mind, maybe we could merge this to provide basic functionality? |
/document |
I wonder about expanding |
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.
Just one little comment, otherwise looks great!
Co-authored-by: Andy Teucher <andy.teucher@gov.bc.ca>
@stephhazlitt I like that idea too. The problem is that there is no way to know which sheets are present without downloading each excel file. If we had a record like this we'd have to download each file just to generate that table. Then we would have to redownload when we choose the one we wanted. Seems like a lot of downloading. It really highlights why excel files with multiple sheets aren't ideal. |
Following from my last question, the original error message is swallowed by
|
I agree with merging this in now @boshek, good call. I still like the idea that |
Here is what happens at the moment:
Created on 2020-05-11 by the reprex package (v0.3.0)
I think that if a user specifies the
sheet
argument thatbcdc_get_data
should be silent. We are trying to warn those who don't know about this. What do you think @ateucher ?