can shiny apps in shiny apps.io be linked to my postgresql database ? i tried but it gives me error here is my code it works offline but i can't launch it in shiny apps.io
this is the error
DONE Uploading application bundle...DONE Deploying application: 42170... Waiting for task: 32473560 error: Parsing manifest
############################ Begin Log ################################## ############################# End Log ################################### Error: Unhandled Exception: Child Task 32473561 failed: Error parsing manifest: Unsupported locale:4409_4409.UTF-8
my short version of server.r
library(e1071)
library(cluster)
set.seed(123)
shinyServer(function(input, output) {
library("RPostgreSQL")
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, host='localhost', port='5432', dbname='TESTDB',
user='postgres', password='root')
rk <- dbSendQuery(con,"select * from persons")
rs<-fetch(rk)
radioValues <- reactive({
gender <- input$gender
if (gender==1){
rs[rs$gender=="male",]
} else if (gender==2){
rs[rs$gender=="female",]
} else if (gender==3){
rs
}
})
selectedData <- reactive({
radioValues()[,input$show_vars, drop = FALSE]
})
output$mytable = renderDataTable({
selectedData()
})
dbDisconnect(con)
})
ui.r
library(shiny)
palette(c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3",
"#FF7F00", "#FFFF33", "#A65628", "#F781BF", "#999999"))
library("RPostgreSQL")
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, host='localhost', port='5432', dbname='TESTDB',
user='postgres', password='root')
rk <- dbSendQuery(con,"select * from persons")
rs<-fetch(rk)
shinyUI(pageWithSidebar(
headerPanel(h1("Clustering Process Dashboard",style='font-family:"Times New Roman", Times, serif')),
sidebarPanel(
checkboxGroupInput('show_vars', 'Select Big 5 features',names(rs)[c(-1,-2)], selected = names(rs)[c(-1,-2,-3,-9)]),
),
mainPanel(
tabsetPanel(
tabPanel("Table", dataTableOutput('mytable'))
)
)
)
)
dbDisconnect(con)
Please note that i don't post my full code i just post the code regarding the issue. It's my Final year project so if you want my full code please contact me. I hope you can understand my concern about this. So if u find error any where in this code i apologize in advance.