I am trying to add pairs of values (date, value) to Google Sheets via gs_add_row
from googlesheets. This succeeds, except that both values show up as dates on Google Sheets.
I checked the "value" beforehand to make sure it is as expected (eg. 50), but Sheets displays a date (1970-02-20).
I even tried setting the cell formatting in Sheets to "Numbers" instead of "Automatic" but it made no difference.
Is there a way to specify variable types?
EDIT Example code:
library(lubridate)
library(googlesheets)
library(dplyr)
#URL <- "[some 'published to the web' Google Sheet URL]"
dt <- ymd(today())
val <- 50
URL %>%
gs_url() %>%
gs_add_row(ws=3, input = c(dt, val))