Skip to content
Prev 387339 / 398502 Next

A tibble with date column appears different in shiny

Hi Rui

Tried renderDatatable, but now my shiny UI shows Blank for my tibble. Not
sure what Iam missing suddenly when this was working fine a day back.

The one change I did was:

x <- getURL("
https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv
")
us_counties <- read.csv(text = x)

Error in function (type, msg, asError = TRUE)  :
  error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol
version

Hence had to change this to :


  urlfile="
https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv
"
  #GN added 3/3
  #GN comment 3/4
  #us_counties<-read_csv(url(urlfile),col_types = list(date = col_date()))
  #GN Add 3/4
  #GN added 3/3
  cols_spec <- cols(
    date = col_date(format = ""),
    county = col_character(),
    state = col_character(),
    fips = col_character(),
    cases = col_double(),
    deaths = col_double()
  )

  us_counties <- read_csv(url(urlfile), col_types = cols_spec)
 ===========================


Regards
Gayathri
On Thu, 4 Mar 2021 at 08:41, Rui Barradas <ruipbarradas at sapo.pt> wrote: