Dinah
April 14, 2021, 3:25pm
1
i keep getting this error everytime i run my code. what could be the problem? i
runApp()
Error in func(fname, ...) : app.R did not return a shiny.appobj object.
Dinah
April 15, 2021, 4:50am
3
I can't post the code because I'm new here. but I was following this tutorial Shiny - Welcome to Shiny (rstudio.com) and I took the code exactly how it is presented there.
There is no restriction for that, you just have to do it the right way, here is how to do it.
Formatting Code: the Basics
All code or console output you include in your posts should be formatted properly. Luckily, this is very easy to do! Just use the code formatting button at the top of the post editing box:
[image]
Select some code
Click the </> button!
The code formatting button automatically adds special Markdown formatting symbols to whatever you selected. If you check the preview pane to the right of your post, you'll see that the forum software now outputs nicely formatted code .
[04]
The code formatting button is pretty smart! It can tell the difference between snippets of code that are part of a sentence and blocks of code that stand alone. …
The error message suggests you have a coding problem, and without seeing your actual code, there is little we can do to help you. To help us help you, could you please prepare a repr oducible ex ample (reprex) illustrating your issue? Please have a look at these resources, to see how to create one for a shiny app
Shiny issues can be challenging to resolve relative to other problems with your code or statistical methods. Shiny apps are often large, complex projects with interacting files.
When seeking help from others it is considered polite to:
First, do your best to work through RStudio's debugging tools to diagnose your issue on your own. Often those shiny logs and tracebacks are useful to others trying to help out.
Second, strive to minimize the effort required to replicate your issue. You can do this with a reproducible example ("reprex").
Shiny Debugging
Errors in Shiny code can be difficult to track down. If you don't know where your problem is coming from, you can track it down with some o…
Dinah
April 16, 2021, 8:09am
5
thank you,.. I went through my code and I found a few errors, it took a while but I was able to debug them.
system
Closed
June 9, 2021, 12:09pm
6
This topic was automatically closed 54 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.