JonnyTest | Hi everyone, I've been trying for three days to get a (mini-) conda environment running using a predefined env.yaml file. The .yaml file includes packages like r-base, jupyter Lab, Python and others. My goal is to use the R kernel in Jupyter Lab. But it just won't work (though the Python kernel does work). So I installed the conda shell with “nix-env -iA nixos.conda” (should I even use nix-env?), activated it, and created the desired environment from the .yaml file. Then I activated Jupyter Lab to run R commands there, but my R kernel won’t connect. I’m getting warnings that the “utils” and “stats” packages can’t be found, even though they’re there. I’ve tried everything possible, reinstalling conda and the environment, but I keep getting the same errors. Then I thought, okay, this must have something to do with R. Instead of using the YAML file, I just downloaded R-base into a new environment with “conda create -n r_test r-base -c conda-forge,” went into the R terminal (“R”) to install both packages there, but the packages cannot be installed. I think this is a very simple mistake, but I’m too clueless to figure it out. Anyone who wants to test it is welcome to run these commands:
- nix-env -iA nixos.conda
- conda-shell
- conda create -n r_test r-base -c conda-forge
- conda activate r_test
- R
| 15:50:51 |