I have a problem running my Shiny App using the runApp() button in R. I recieve the error message:
Error in ..stacktraceon..({ : object '.' not found
I can run the app if I just use ctrl+A and then ctrl+enter which uses the shinyApp(ui, server) function instead. Every function in the application works fine when I run it this way.
The problem with running the app this way is that I can't publish the application.
This problem only occurs when running a specific app.
I've found someone with a similar problem here:
https://github.com/Coorsaa/shinyMlr/issues/126
Puy the post ends by Coorsaa saying that the problem should be fixed now. Anyone know how to fix this?
Do you need me to post the code for the app here? -or does the problem have something to do with R or Shiny?
YBS had the answer.
"Most likely you have a "." in front of a comment or executable line in your code. You need to remove that "." in your code. It would be best to post your code, if you need someone to help you."
This was exactly what I found infront of one of my comments.
Thanks! I didn't notice that at all.
Related
I am trying to build and compile an ASP.Net solution. The solution is new. Here is how I create it:
For this demonstration I avoid creating anything post-creating the project,
And here are the errors that I am getting:
All errors above, lead to the following place:
Any direction would be greatly appreciated!
Thanks!
Ok, assuming you looking to create a asp.net webforms app?
Your screen caps look ok, and it not clear why your resulting application has errors, or build issues.
I would try to create another project, different name. See if that works.
Better, try tapping windows key, type in 2022, and then right click and try run as administrator, and see if that helps. (the default source folder might for some reason require elevated rights to work).
And if above does not work?
then I would try a repair, or even re-install of VS. Perhaps the templates are messed up.
Following your exact steps, my vs2022 created asp.net web applcation without issues.
best guess:
Your VS install is messed up, re-install, or repair.
tools->get tools and features.
Then: close the modifying window, and you should see this:
Try a repair.
Thanks Albert and everyone attempting to help!
What I did that solved the issue is to click the errors, and I was redirected to the following document:
Here, I deleted every tag that was highlighted in any of the errors, more specifically, things related to Video Builder Cloud Services (VBCS), and off I go :)
I ran into this error while trying to compile my overleaf latex;
"Server Error Sorry, something went wrong and your project could not be compiled. Please try again in a few moments".
Your response will be helpful. Thanks
This problem may arise as a result of the internet connection. The simple way to resolve this problem is to reload the Overleaf editor by refreshing your browser.
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 am working on a project on Rstudio and something wired has become to happen: each time I write something into a script Rstudio automatically writes the following error into the console:
Error in rep.int(vectorNames[i], length(vector[[i]])) :
unimplemented type 'NULL' in 'rep3'
and a label appears under the cursor: "R code execution error".
Appart form this visual bug, everything is working properly. Does anyone have the same issue ?
I've just experienced this issue. In my case, I guess it must be related to the NAMESPACE file from the package.
I can see a discussion about this subject here on R Studio support site.
Citation from the source mentioned above:
There are two times when we run the code that could be emitting this error:
When attempting to retrieve completions from the package's NAMESPACE file,
When attempting to retrieve completions for native routines (e.g. for within a '.Call()' call).
Can you recall if you had been editing the package's NAMESPACE file before seeing this error? Alternatively, have you been using 'devtools::load_all()' or other similar machinery?
And to clearly answer your question:
Yes! I am having the same issue! (Damn it! :) )
LATER EDIT:
I've got rid of the problem by closing the project and reopening it again.
I remember having used an option setting that enable to print in the R console the messages between the server and ui while a shiny app is running.
This option is really useful to understand what is happening in the app.
However I cant remember the name of that option and can not find it anymore in the documentation.
Can someone can tell what is that option ?
Thanks!
I finally found it :
options(shiny.trace=TRUE)
Before running the app. I find it extremely useful to understand what is appending. I don't know why it is not more documented.
R Studio lists a nice summary of R Shiny global options available here
You may wish to turn both of these on:
options(shiny.trace=TRUE)
options(shiny.fullstacktrace=TRUE)