1

I was originally trying to force my shiny apps to launch in Edge

options(browser = "C:/Windows/SystemApps/Microsoft.MicrosoftEdge_8wekyb3d8bbwe/MicrosoftEdge.exe")
runApp(shinyApp(ui, server))

Furthermore, I can't even launch Microsoft Edge from windows command line using this path to the exe, but instead, you have to use this in the command line:

start microsoft-edge:

But then you can't use R's system() to launch edge this way:

> system("start microsoft-edge:")
Warning message:
running command 'start microsoft-edge:' had status 127

Any ideas on how to use Microsoft edge with R?

Lee88
  • 1,185
  • 3
  • 15
  • 27

1 Answers1

2

You can get to Edge using

system("cmd.exe", input="start microsoft-edge:")
G5W
  • 36,531
  • 10
  • 47
  • 80
  • 1
    This could also be written as: `shell("start microsoft-edge:")` – G. Grothendieck Mar 06 '18 at 03:04
  • `start msedge` also works, I believe this is because `HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\msedge.exe` is within the registry on windows – dog Jul 03 '20 at 19:56