cderv / pandoc

R package to install, manage and run Pandoc (https://pandoc.org/)
https://cderv.github.io/pandoc/
Other
27 stars 2 forks source link

Add a function to browse the installation folder of Pandoc #5

Closed cderv closed 2 years ago

cderv commented 3 years ago
browseURL(pandoc_home())

or similar

yihui commented 3 years ago

https://github.com/yihui/animation/blob/5195d61be25032e973cefb107594aedac97f2d5c/R/utils.R#L23-L27

On Linux, it assumes xdg-open is available. This code was from 14 years ago. I'm not sure if Linux has another built-in command to open a folder. On Windows and macOS, shell.exec() and system2('open') should work fairly well.