Closed HVinther closed 3 hours ago
Ok, I just created a temporary enviroment with:
nix-shell -p R rPackages.callr rPackages.RCDT
Where the issue persisted. I'll report this on NixOS/nixpkgs instead.
Thanks, we also contribute to the R packages ecosystem on nixpkgs, so feel free to reference this issue in the one you’re going to open!
So I've encountered a problem and not sure whether this is a problem of rix, a packing issue of nix or a problem with the packages themselves.
I've got the following file for generating the nix-enviroment. I've tried with r_ver as "4.4.0" and "bleeding edge"
And the following _targets.R file
When running
targets::tar_make()
inside the nix shell I get the following error messageHowever, when running
targets::tar_make(callr_function = NULL)
the pipeline executes as expected. When I callIt does yield the above error message along with a warning, which also appears if I call
library("RCDT")
from within an ide (here positron). Callinglibrary("RCDT")
from within an ide I do however not get an error.When calling
library("RCDT")
from a terminal R-session I get prompted withEntering a number causes a segmentation fault. But entering a string just gives the prompt again.
Now, none of these problems arise in a rocker/r2u docker container. Calling
library("RCDT")
just loads the package with out error or warning in both an IDE and terminal.I see that in the default.nix file created by rix, there are som LANG arguments in the pkgs.mkshell function, and since the warning mentions something about ANSI and UTF-8, I was wandering whether there might be an issue there.
I'm still quite new to nix, so I'm not quite sure yet how to determine if this is a problem with the nix packaging of RCDT or something else. Please redirect me, if you think the issue is better raised elsewhere.