The application failed to start (exited with code 1).
Registered S3 methods overwritten by 'ggplot2': method from [.quosures rlang c.quosures rlang print.quosures rlang Error in value[[3L]](cond) : there is no package called ‘markdown’ Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted
@tanzor, I suspect that on your local machine you may have markdown loaded, by is not part of your shiny application. What you need to do is have something like this rm(list = ls()) in your global.R. Or close RStudio and try to run your app locally. If any libraries are missing, you will know.
Try check that the shiny app has all the libraries.
Thanks! The application does work on my local machine, so I guess markdown is not installed on the shinyapps server? Is there a way to overcome this problem?
This is just because I gave up on integrating the markdown bits in - I kept getting error messages on the published version and even when running locally the text looked funny and some of the equations got corrupted.
(I opened a new topic to ask more broadly about what I'm trying to do)
@tanzor, markdowns do work on shinyapps.io. See my app -> https://kill3rbee.shinyapps.io/vFeedCard/ When you click on About, that is a markdown I am using. I suspect you do not have the library(rmarkdown). Run your app locally fresh with having down anything. I have package shinyapp without including library and failed on shinyapp.io
@tanzor,
Just because the library is installed on your local machine does not mean, it will be packaged. You must have the library as part of your code, be it in your global.R. Why do I say this?
Sometimes you may write a program to test a small concept. When you do that, the library is loaded in memory and available globally for any code you write.
So you copy new working code into your app, test it and runs fine. I have done this before. So everytime before I deploy my app, I make sure I clear everything or close RStudio, start it from scratch and run my app just to be sure.
That could be the cause. You will have to eliminate that low hanging fruit
We're making some progress, I'm able to include markdown text now, but the equations are not rendered for some reason. I have the following equation in my md file:
More progress! I used rmarkdown::render() and now the equations are rendered properly. The only annoying thing is the before the markdown section. Is there a way to remove it?
Thanks, but this didn't help: I'm still getting "< !DOCTYPE html >" before the markdown session, and the whole part is indented as a result. Any ideas how to avoid this?
The output has this annoying < !DOCTYPE html > at the top left corner. I must use the rmarkdown::render function because otherwise the equations don't get rendered.
Thanks again! I really appreciate your help on this.
cheers,
-Matan
Do not use markdown library. Try that and see what happens. Just tested markdown and rmarkdown no difference. I prefer rmarkdown cause I had issues with markdown do not remember what:
---
title: "About"
output: html_document
---
### CARD - The Correlated Vulnerability, Threat and Exploit Database
This Shiny App is for searching and visualizing CARD a fully aggregated, cross-linked and standardized Vulnerability Database based on CVE and other standards (CPE, CWE, WASC, CVSS).
I'm not sure I understand. In your example you don't include rmarkdown::render, which I have to include in order for the equations to be rendered. Am I missing something?