Question: I am using electron fro developing an application in which I need to open the local excel file on button click so help me out with this.

Answer: 
I've been having the same issue, and I don't think you can do this with `shinyalert` because of the need for `useShinyAlert()` - adding extra dependencies into Rmd documents doesn't seem to be supported very well.

A workaround is to use `sendSweetAlert` from the `shinyWidgets` package:

```
---
title: "Test"
output: flexdashboard::flex_dashboard
runtime: shiny
---

```{r global, include= FALSE}
library(shinyWidgets)
```

```{r}
  actionButton("helpBtn", "Help")
```

```{r}
  observeEvent(input$helpBtn, {
  sendSweetAlert(session, title = "Help Me!", text = "Please contact your instructor")})

```

```
Not sure if your issue was resolved or not, but setting the `rmd` parameter in `useShinyalert` to `TRUE` should solve your problem.

`useShinyalert(rmd = TRUE)`