I'm in a difficult situation to figure out how to publish shiny app online.
Can't find any solution in the older questions.
The app works locally perfect but its impossible to put it online.
when I run the log, show just this:
Error in serverInfo(server) : server named 'rpubs.com' does not exist
on the part
"Markers": Line 14 - Paths should be to files within the project
directory. Error in sheets_fun(path) : Evaluation error:
path[1]="database.xls".
The file *.xlsx is already in the same folder of the *rmd.
Could any one help me I have no idea how to solve this issue. I'm now in two weeks trying to solve this.
that is to grab a job, and I will appreciate a lot if anyone tell me how to make it works
Related
I just installed on my machine R 3.6 and tried to run my Shiny app and all of a sudden I get this error message:
Listening on http://10.81.197.170:1234
Error in makeTcpServer(host, port, private$appWrapper$onHeaders, private$appWrapper$onBodyData, :
Static path must not have trailing slash.
I tried to check what explained here Host shiny app on Windows but I do only have one single IP address.
I'm a very basic R user so I have no idea of what I could do to fix this problem. I also see another person had a similar issue a couple of months ago https://community.rstudio.com/t/error-using-a-shiny-app-on-windows-maketcpserver/64841 but he didn't get any answers.
Thanks for the help
This is difficult to answer specifically without seeing the code of your app.
However, I ran across the same error recently and will share what I did wrong and the fix, in case someone else got the error for the same reason I did.
In my app, I wanted to access data stored in a different folder from www, and to do this I had to add a resource path:
addResourcePath("myfolder","/foldername/")
data <- readxl::read_xlsx("myfolder/mydata.xlsx", sheet=1)
This worked when running the script locally, but not when it happened to be on a flash drive. That's when I got the error you describe above.
I also got it when using an absolute location for that folder:
addResourcePath("myfolder","E:/foldername/")
The fix was simple: remove the trailing backslash.
addResourcePath("myfolder","E:/foldername")
This may not be exactly your situation, but I'd look out for any instances where you're specifying directories to start out with.
I have a simple shiny app that is doing some data manipulation for some people who have no experience using R. Since this app isn't going to be used by a large amount of people and has some sensitive company data being manipulated by it, I was thinking that storing it locally would be a great option.
I began to do some research and stumbled upon photon. With that being said, I followed the steps found on their github(in their presentation found at this link: https://www.user2019.fr/static/pres/lt257916.pdf).
When attempting to create the app, I am hit with the following warning message:
Warning in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\Users\tylerfrields-re\Desktop\Savings_Allocation_Shiny/electron-quick-start": The system cannot find the file specified
After recieving this message, the commands continue to run all the way to the point of packaging the app, but the app doesn't seem to package. I have all the dependencies installed, so was wondering if anyone could help me resolve the issue. Any help is greatly appreciated!
Quick update: There is now an app there, but the issue is that the app contains nothing. It will run, but it is just a blank white screen. I'm unsure why this is occuring.
I have been trying to connect my SQLite DB with my Expo file and have been reading some documentation online to get a good basis and understanding so that I could begin my own coding. I ran across this example snack linked here: https://snack.expo.io/SJ99BIfrX. However, when I downloaded the file onto the EXPO XDE, but I got this error message: 'Unable to resolve "./assets/db/test.sqlite" from "App.js"', even though the file is clearly in the assets/db/ file.
I have been really frustrated trying to figure it out, so anyone help would be really appreciated.
The shinyapp I built earlier was running fine in my old laptop. Recently I got a new laptop with Windows10. After setting up everything, I tried to run the app but it the browser opens and closes immediately with the error :
Listening on http://127.0.0.1:5004
ERROR: [on_request_read] connection reset by peer
I have also set chrome as default browser....
I deployed this app in shinyapps.io it is working fine there.
I tried few more simple apps in Rstudio but the same issue coming. Looks like the issue is more related to some setting in Windows10. Can someone help me please.
Thanks in Advance.....
Without details on the specific code, I'd share my personal experience with the same error for your reference. In my case, I used RStudio to create a shiny app that save data to a local directory on my computer, while I told R to output files to directory "response", I hadn't created such directory under the working directory so came the error. Simply creating the sub directory named "response" solve this right away. Or for moving your project files to different places in the future, you can just check whether the folder exists, if not, create one shall save you a lot of time.
I have been trying to deploy a shiny app using rsconnect: deployapp(appname = "myapp"). I get the following message at the command prompt:
Application successfully deployed to https://sitename.shinyapps.io/MyApp/
However, when I launch the app, I get the error message:
ERROR: cannot change working directory
Based on resolution to similar problem on both Stackoverflow and googleforum, I tried using both absolute and relative paths in setwd(). Following are the error messages with both absolute and relative paths to setwd():
Error in setwd("~/Data/Projects/MyApp"): cannot change working directory
Error in setwd("C:/Users/Documents/Data/Projects/MyApp"): cannot change working directory
Any suggestions to resolve the issue would be greatly appreciated. thanks in advance!
shinyapps.io is a virtualized container service running shiny apps.
It is most likely linux based. I do not have the time to write up a
shiny app to confirm that but like most virtualized containers let
us assume it is.
With 1 being say true. Paths like C:/ do not make sense in the linux world.
Again with 1 in mind the directory structure of ~/Data might not exist.
Work with relative paths ~/ Also put a checkguard with dir.exists() and dir.create
dirname <- '~/Data/Projects/MyApp'
if (!dir.exists(dirname))dir.create(dirname,recursive=TRUE)
FYI I don't really think your should be doing any setwd() for shinyapps. If the data file is is in ~/Data/Projects/Myapp/somedata.csv you can do a direct read in the app as read.csv('somedata.csv').
The server directory structure is in the form of /srv/shiny-server/MyShinyApp when you upload
Error in setwd("c:/nonexistent_directory_path") : cannot change working directory
This error message will be generated when a directory does not exist. Verify that directory does in fact exist (ie: check spelling, typos).