Closed richardfergie closed 2 years ago
Sorry I don't know anything about NixOS, nor why this would occur there.
https://discourse.mc-stan.org/t/rstan-on-nixos/17048/11 suggests that it because NixOS sets env vars that are excessively long.
Sounds like this is a fix that will happen in Nix rather than in pkgbuild
When running
pkgbuild::has_compiler(debug=TRUE)
on NixOS I get the following error:However, running
R CMD SHLIB foo.c
with foo.c as defined at https://github.com/r-lib/pkgbuild/blob/7b3f1420b97be9821e19a789574e8ecfc491825e/R/compiler.R#L23 I do not get an error.I've tried manually running the call to
rcmd_safe
at https://github.com/r-lib/pkgbuild/blob/7b3f1420b97be9821e19a789574e8ecfc491825e/R/compiler.R#L30 and I get the same error.Changing
rcmd_safe
torcmd
orrcmd_copycat
gives the same error message so I'm not really sure how to proceed.