Re: [R] A tibble with date column appears different in shiny

2021-03-05 Thread Gayathri Nagarajan
Hi Rui Alas, at last this worked and this is what I did : 1) I stopped debugging and started a fresh new table to display in shiny UI using this example-https://shiny.rstudio.com/gallery/basic-datatable.html 2) Now instead of the table mpg, I plugged in my us_counties above at first and it worked

Re: [R] A tibble with date column appears different in shiny

2021-03-05 Thread ruipbarradas
A tibble with date column appears different in shiny Para: Rui Barradas > 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 d

Re: [R] A tibble with date column appears different in shiny

2021-03-04 Thread Gayathri Nagarajan
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

Re: [R] A tibble with date column appears different in shiny

2021-03-04 Thread Rui Barradas
Hello, This is a known issue with renderTable. Show the results with renderDataTable instead. Hope this helps, Rui Barradas Às 15:24 de 03/03/21, Gayathri Nagarajan escreveu: Hi Team I have a tibble like the below : class(us_counties) [1] "tbl_df" "tbl""data.frame" head(us_co

Re: [R] A tibble with date column appears different in shiny

2021-03-04 Thread Gayathri Nagarajan
Hi Rui I have tried the same but this is not working. when I do head(us_counties), I clearly see this is a date,in R studio console head(us_counties) date deaths Todays_deathscounty state fips 1: 2020-03-19 0 0 Abbeville South Carolina 45001 2: 2020-03-20

Re: [R] A tibble with date column appears different in shiny

2021-03-03 Thread Rui Barradas
Hello, Your col_types argument is wrong, you only have col_date. library(tidyverse) urlfile <- "https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv"; #GN added 3/3 cols_spec <- cols( date = col_date(format = ""), county = col_character(), state = col_characte

[R] A tibble with date column appears different in shiny

2021-03-03 Thread Gayathri Nagarajan
Hi Team I have a tibble like the below : class(us_counties) [1] "tbl_df" "tbl""data.frame" head(us_counties) # A tibble: 6 x 8 date deaths Todays_deaths county state fips 1 2020-03-19 0 0 Abbev~ Sout~ 45001 2 2020-03-20 0