Closed dokato closed 2 years ago
For context: the reason why I need it, is that I want to dynamically create a link to the spreadsheet in a markdown report.
Are you tied to googlesheets4 version 0.3.0 or can you update? The official version on CRAN is 1.0.0, it's possible with a package update might be needed.
cpilat>a <- gs4_create("C_report")
✓ Creating new Sheet: C_report.
cpilat>a
Spreadsheet name: C_report
ID: 1Y7FJjEQd3qvWZ0vYrrxxaeX5dEZpfnYk63rF7orZ-gc
Locale: en_US
Time zone: Etc/GMT
# of sheets: 1
(Sheet name): (Nominal extent in rows x columns)
Sheet1: 1000 x 26
cpilat>packageVersion('googlesheets4')
[1] ‘1.0.0’
cpilat>#clean up
cpilat>googledrive::drive_trash(googledrive::as_id(a))
File trashed:
• C_report <id: 1Y7FJjEQd3qvWZ0vYrrxxaeX5dEZpfnYk63rF7orZ-gc>
Thanks @cpilat97 , indeed the new version of the package fixed the problem.
I'm trying to get the address of my newly created spreadsheet, but I get this error:
Expected behaviour: link to the spreadsheet.