NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.51k stars 13.69k forks source link

rPackages.Rserve does not install library Rserve and cli tools does not start #213007

Closed behrica closed 10 months ago

behrica commented 1 year ago

Describe the bug

rPackages.Rserve does not install library Rserve and cli tools does not start

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p rPackages.Rserve
  2. Run "R" in shell
  3. library(Rserve); run.Rserve() fails with there is no package called ‘Rserve’

The RServe command line tolls gets installed by teh packge, but starting it via Rserve fails with Fatal error: R home directory is not defined

TomaSajt commented 10 months ago

You'd also need to also add R to the used packages, because R contains the setup-hook, which discovers R packages command: nix-shell -p R rPackages.Rserve

This is not specific to Rserve

Instead of using nix-shell -p, I'd recommend using an environment with mkShell (or alternatives), and using either nix-shell or nix develop