Closed eliocamp closed 4 days ago
Thanks, it seems like shells couldn't be built at the time. So instead of doing nix-build
then nix-shell
, you can only use nix-shell
.
Try using nix-shell
instead of nix-build
and it should work. Thank you, will document this.
Ah, I didn't know there was a difference.
This
library(rix)
rix(r_ver = "4.0.0",
ide = "rstudio",
r_pkgs = "pak",
project_path = ".",
overwrite = TRUE)
running with nix-shell
throws an error:
[nix-shell:~/Documents/research/nixtest2]$ export QT_XCB_GL_INTEGRATION=none
[nix-shell:~/Documents/research/nixtest2]$ rstudio
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
(rstudio:570033): GLib-GIO-ERROR **: 22:33:25.470: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
Trace/breakpoint trap (core dumped)
Strangely, if r_pkgs
is NULL
, then RStudio does boot up, but then crashes with #214.
For very old versions like that, I think it would be best not to use RStudio, if possible. But it depends what you want to achieve.
Ah, because the old version of RStudio might not be compatible with my "modern" system?
In theory that wouldn't be an issue, as Nix would pull all the required dependencies. However, in practice, because it's a graphical application it wouldn't surprise me if there could be issues, as is the case here. I don't know exactly what's the problem, but I wouldn't waste too much time trying to make an old version of RStudio work. For older versions like that, I would use another editor "outside" of Nix if I needed to work interactively. For example I use my system-installed Emacs and it works well. Probably you could use VSCode as well. Another option is to use subshells for old environments like this:
see in particular case 3
Would running rstudio server and using it from the browser work? (like with rocker containers)
probably, but never tried this
This nix config is failing to build:
I get this error:
The full log doesn't have any more information:
Got the same error with R 3.6.3, 4.0.2, 4.0.3.