R: update to version 3.1.0
Revert "nixos: fix shell on conatiners"

This reverts commit c69577b7d6ea96cd605043440145ea6e094674b5.
See https://github.com/NixOS/nixpkgs/pull/2198 for further details.