NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.36k stars 14.32k forks source link

rstudio, rstudio-server: should they be able to knit markdown files out-of-the-box? #185048

Open bcdarwin opened 2 years ago

bcdarwin commented 2 years ago

Describe the bug

Stock rstudio{,-server} can't knit Rmarkdown files due to missing Pandoc as well as various R packages (knitr, etc.). Normally the user gets a dialog offering to install these (except Pandoc) but this of course installs in the user's home directory rather than using Nix-managed packages. Should these be additional packages be available by default?

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p rstudio
  2. rstudio
  3. create a R markdown file
  4. click knit

Notify maintainers

@cfhammill @ciil @jbedo

jbedo commented 2 years ago

Bit ambivalent about this one, lots of people are knitting but pandoc isn't something I'd generally want to bundle by default. The NixOS module could have a configuration option.