Open JerePlum99 opened 1 year ago
@jennybc Hi Jenny, I know there's a backlog here but wanted to see if I can help in any way, as I've been unable to figure out a workaround without maintain a fully separate package. I think the question probably comes down to Google's intent for passing in NULL
values, and whether they should write NA or skip entirely.
My understanding is that they should skip entirely (so you wouldn't overwrite data/formula in a range), and that the fix would basically be reverting this commit. Let me know if there's anything else I can do!
I believe that the results of #203 may have removed the intended functionality from the Googlesheets API - as it now seems there is no way to skip columns or cells when writing data with functions such as
range_write()
.My understanding of the Sheets API and specific functions comes from the following pages:
With this, I expect that when using
range_write()
I would be able to useNA
to specifically write empty values, while usingNULL
to specifically skip editing values.I provided the below
reprex
, in which I create a tibble & sheet with a formula column in between, and attempt to edit them, with the goal of essentially "skipping" an edit to the "formula" column, ideally with the use ofNULL
values.Let me know if you have any questions or if I'm thinking about this wrong - appreciate all the help!