jennybc / googlesheets

Google Spreadsheets R API
Other
783 stars 191 forks source link

gs_ws_new and gs_ws_delete use different arguments for sheet identification #392

Closed jg-ookla closed 5 years ago

jg-ookla commented 5 years ago

gs_ws_new uses ws_title to identify the name of the sheet. gs_wsdelete uses ws to idenfiy the name of the sheet.

For the sake of continuity, wondering if gs_ws_new and gs_ws_delete can both use ws_title as an argument?

jennybc commented 5 years ago

This is intentional.

gs_ws_new() must get a string as the title via ws_title.

Whereas gs_ws_delete() can accept a worksheet title OR an integer identifying its position, which is true for many other functions that accept a ws argument.