You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On read, a column is assumed to be logical after some (maybe 1,000?) rows of missing data. If a character is at the bottom, then this silently fails with no error.
my_str<-"My Str"empty_sheet_url<-"<url>"tbl<-tibble::tibble(i=1:2000, str= c(rep("", 1999), my_str))
googlesheets4::write_sheet(tbl, empty_sheet_url)
df<-googlesheets4::read_sheet(empty_sheet_url, "tbl")
testthat::expect_type(df$str, "character") #fails, is logicaltestthat::expect_equal(df$str, c(rep("", 1999), my_str)) #fails, is all NA