Hello,
Can you please help me with the following?
my app.R file contains the following -
library(shiny)
library(tm)
library(NLP)
library(stringr)
library(markdown)
library(dplyr)
quadgram <- readRDS("./shiny/data/quadgram.rds")
trigram <- readRDS("./shiny/data/trigram.rds")
bigram <- readRDS("./shiny/data/bigram.rds")
# a function code here
# server.R code here
# ui.R code here
shinyApp(ui = ui, server = server)
In above code *.rds files generate through different .R file. What I need to do is use those files here in app.R and deploy the shiny app.
It keep saying "cannot open compressed file './shiny/data/quadgram.rds', probable reason 'No such file or directory'
Error in gzfile(file, "rb") : cannot open the connection"
Also I tried using setwd() command but then it says "Error in setwd(appDir) : cannot change working directory"
Can somebody please help me?
Thanks,
Dhiraj