blog/how-to-publish-shiny-app-example-with-shinyapps-io/ #53
Replies: 20 comments 9 replies
-
I have succeeded in step 16 and edited the app (i.e., replace the entire code by my app).Then I run the app again by clicking on the Run App button. The Shiny app appeared in my computer. I tried to published it in my internet browser by clicking on the Publish button. However.it does not work. It shows as follows. An error has occurred.The application failed to start: exited unexpectedly with code 1. I wonder what the reasons for it. Thanks inadvance. |
Beta Was this translation helpful? Give feedback.
-
Can you give me the shinyapps.io link to your app? Regards, |
Beta Was this translation helpful? Give feedback.
-
Hello, I want to publishing a data on shinaapp, i faced with the below error on R, This is my code:
|
Beta Was this translation helpful? Give feedback.
-
Hello, Before trying to publish your app, is your app working locally (on your computer)? It seems to me that you run Regards, |
Beta Was this translation helpful? Give feedback.
-
Thank you for your time and response.
yes, it is working on my PC, after i click on number 2(below picture) it is published on the shiny app. but when i want to run it on shinyapp i faced with the "Error in value[[3L]](cond) : could not find function "%>%"Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>Execution halted"
Best Regards,
Saeed Raeisi
|
Beta Was this translation helpful? Give feedback.
-
The error |
Beta Was this translation helpful? Give feedback.
-
It did not work.can I share my screen via zoom?
I use the df1 from R script. and didnt use the file directly to the app.R. may the error be because of this?
Best Regards,
Saeed Raeisi
|
Beta Was this translation helpful? Give feedback.
-
Yes. You refer to a dataset in your app that is not available outside of your environment. So your app cannot use that dataset. So you must publish your data as well. The easiest way is to host the dataset online as a csv file and then import it via the url (at the beginning of your code). Hope this helps. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi, this is a great article, thank you for sharing it.
|
Beta Was this translation helpful? Give feedback.
-
Dear Andrea,
Hope this helps. Regards, |
Beta Was this translation helpful? Give feedback.
-
How can others see the shiny app if the url redirects to your local computer? Isn't the url "Antoine's Gateway" just someplace like http://127.0.0.1:1111 that only Antoine can access? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the personal response!
I was able to duplicate your example, and this one with boxplots at
https://shiny.rstudio.com/articles/build.html
If I replace mtcars with mydata then Run App produces a shinyapp as
expected, but "An Error has occurred" when I try to republish.
The log show
Error in value[[3L]](cond) : object 'mydata' not found
Does this sound like a newbie problem that I just don't know where to store
my data?
~/
https://staff.washington.edu/mounce/
|
Beta Was this translation helpful? Give feedback.
-
Thanks again,
I hacked something together with a read.csv command at the top of my app.R
file, and the data in the same directory, and it appeared to all publish.
It seems to be working, and I think I understand, so I'll keep learning
best practices.
In any case, your site and explanations were among the best I found, so
thanks again!
~/
https://staff.washington.edu/mounce/
|
Beta Was this translation helpful? Give feedback.
-
Hi, Can I host my external dataset on google drive and download it from there? |
Beta Was this translation helpful? Give feedback.
-
Thank you Antoine!
|
Beta Was this translation helpful? Give feedback.
-
Hi everyone I have the same issue as kuibaoli. My app runs perfectly on my local RStudio, but when I publish it, this error appears on the browser: Link to the app: https://stevito.shinyapps.io/exercise1/ Here is the code:
Any help would be very appreciated! |
Beta Was this translation helpful? Give feedback.
-
i everyone I have the same issue as kuibaoli. My app runs perfectly on my local RStudio, but when I publish it, this error appears on the browser: Link to the app: https://udishasingh.shinyapps.io/Indicators/ what should i do |
Beta Was this translation helpful? Give feedback.
-
Please do not share my code on GitHub
. It's a request
I have to publish it first for my progress presentation.
Thank you
|
Beta Was this translation helpful? Give feedback.
-
Dear all, I need help. I have a code for developing a Shiny app. I've followed all the steps, but I keep encountering an error. Even when it manages to connect with Shiny.posit (using my user, token, and secret), I still can't visualize anything. I'm not sure what I'm doing wrong. Could someone please provide guidance? Here's my code.
|
Beta Was this translation helpful? Give feedback.
-
Dear Antoine,
Thank you for your prompt response. My delay in replying was due to ongoing efforts to publish my Shiny app on www.shinyapps.io, which I'm still struggling with.
I've ensured that all the required packages are loaded, and I've diligently followed the tutorials. However, I've encountered an error that I'm finding challenging to resolve:
[cid:6e79f516-d6fd-4757-bf45-5c31a59511ca]
[cid:0a0d38a7-8654-457f-a1af-a6cd4a09cbb0]
The complexity arises from the use of shapes derived from results in my doctoral thesis. These shapes are integral to my work, and I've shared the data through this link: https://figshare.com/s/e60f4bffad24327f1d62. I've also submitted this information to the PLANTS, PEOPLE, PLANET journal.
Your guidance or assistance in navigating this process would be immensely appreciated. I find myself a bit desperate as I'm still grappling with a comprehensive understanding of the publishing procedure.
Best regards,
Clara Morales-Rozo
|
Beta Was this translation helpful? Give feedback.
-
How to publish a Shiny app: example with shinyapps.io - Stats and R
See a step-by-step guide (with screenshots) on how to deploy and publish online a Shiny app using shinyapps.io
https://statsandr.com/blog/how-to-publish-shiny-app-example-with-shinyapps-io/
Beta Was this translation helpful? Give feedback.
All reactions