if (FALSE) { # googlesheets4::gs4_has_token()
sheet_id <- "1izO0mHu3L9AMySQUXGDn9GPs1n-VwGFSEoAKGhqVQh0"
read_gsheets(ss = sheet_id, .id = "sheet.name")
# Column types mismatch error --------------------------------------
# If the `read_gsheets()` function complains about a data type mismatch,
# then set the `col_types` argument to `"c"`.
# This will make all the column types in the resulting dataframe be characters.
# For example,
}
if (FALSE) { # googlesheets4::gs4_has_token()
sheet_id <- "1rrjKAV05POre9lDVtHtZePTa8VROf1onVO47cHnhrTU"
try(read_gsheets(ss = sheet_id)) # error, column types mismatch
read_gsheets(ss = sheet_id, col_types = "c")
}
Run the code above in your browser using DataLab