!fXpAvneDgyJuYMZSwO:nixos.org

Nix Data Science

287 Members
61 Servers

Load older messages


SenderMessageTime
13 Apr 2024
@gibbs_ensamble:matrix.orggibbs_ensamble Hello! For the last few days I have been trying to install IRkernel on NixOS using a simple flake.nix that creates a shell with R and some packages. However, IRkernel requires running the command IRkernel::installspec() inside of the R repl.
This command returns a permission denied error in NixOS.
After digging through the source code of installspec, I found the issue:
1) when IRkernel is installed, a file called kernel.json is stored in some /nix/store subfolder
2) this file is then copied to a temporary directory
3) the file is then overwritten to change some of its entries.
Point 3 causes the error, since it's a read-only file due to the immutable nature of NixOS.
To fix this, it's sufficient to specify copy.mode = FALSE when the file is copied in step 2 i.e.
file.copy(srcdir, tmp_name, recursive = TRUE, copy.mode = FALSE)
My question is: do you think it makes sense to do a pull request to the IRkernel repository?
One could argue that installing the package through install.packages("IRkernel") is still possible on NixOS and in fact R will ask the user if it's ok to install it in a local directory because it detects a read-only directory by default.
This is not the Nix way of doing things but it's not the responsibility of the original author to do things the Nix way.
15:43:50
@kupac:matrix.orgkupacYou're right. It's not their responsibility, but maybe there are other reasons to do copy.mode = FALSE? If not, then we can also patch via a PR to nixpkgs.17:26:20
14 Apr 2024
@gibbs_ensamble:matrix.orggibbs_ensamble Originally copy.mode was not even specified, the line was like this
file.copy(srcdir, tmp_name, recursive = TRUE)
which according to the R documentation sets by default copy.mode = TRUE.
So I think that manually setting copy.mode = FALSE should be fine.
Patching via a PR to nixpkgs sounds like a great idea (I didn't know you could do that, I'm new to NixOS).
If you have time maybe you could do it? If not that's ok but it will take me a few days (at least) to go through the docs.
00:10:53
@jb:vk3.wtfjbedo Open an issue and tag us 01:07:23
@jb:vk3.wtfjbedoBtw there’s an r specific matrix room #r:nixos.org if you need help with r01:08:36
@gibbs_ensamble:matrix.orggibbs_ensamble
In reply to @jb:vk3.wtf
Open an issue and tag us
Ok thanks
09:24:41
15 Apr 2024
@reym:matrix.orgreym joined the room.19:45:29
17 Apr 2024
@kupac:matrix.orgkupacHello, friends! Does anybody know an easy way to quert sparql from R? I found {SPARQL}, which has been archived on CRAN, and {glitter} looks nice, but it's not on CRAN (yet?) Anything else out there?09:22:13
@kupac:matrix.orgkupac* Hello, friends! Does anybody know an easy way to query sparql from R? I found {SPARQL}, which has been archived on CRAN, and {glitter} looks nice, but it's not on CRAN (yet?) Anything else out there?09:22:29
@kupac:matrix.orgkupacI just realise this has nothing to do with nix, i don't know why I posted here :)09:23:31
@baumann-philipp:matrix.orgbaumann-philipp joined the room.20:39:09
18 Apr 2024
@fractivore:cyberia.clubSYMYƧ left the room.02:26:55
@nscnt:matrix.orgnscnt joined the room.13:20:33
19 Apr 2024
@tanja-6584:matrix.orgTanja (Old; I'm now @tanja:catgirl.cloud) changed their display name from Tanja to Tanja (Old).14:20:09
20 Apr 2024
@nscnt:matrix.orgnscnt left the room.13:41:41
@daniel-fahey:matrix.orgDaniel FaheyI've written a derivation for TerminusDB, an open source knowledge graph database. I have an open PR on Nixpkgs and would love if someone could review it! https://github.com/NixOS/nixpkgs/pull/30320919:36:43
21 Apr 2024
@okwalleye:matrix.orgollito changed their display name from OldBlackHen to ollito.19:01:39
@dyazz:matrix.orgDyazz joined the room.19:04:35
23 Apr 2024
@sankaratupi:matrix.orgFelipe Marcelino joined the room.00:05:14
@tanja-6584:matrix.orgTanja (Old; I'm now @tanja:catgirl.cloud) changed their display name from Tanja (Old) to Tanja (Old; I'm now @tanja:catgirl.cloud).12:29:39
24 Apr 2024
@gibbs_ensamble:matrix.orggibbs_ensamble left the room.21:16:41
25 Apr 2024
@ss:someonex.netSomeoneSerge (UTC+3) changed their display name from SomeoneSerge (void) to SomeoneSerge (UTC+1).23:01:13
26 Apr 2024
@brodriguesco:matrix.orgBruno Rodrigues changed their profile picture.09:19:24
27 Apr 2024
@ygt:matrix.orgnadir joined the room.18:21:19
29 Apr 2024
@anjoletto:matrix.orgleonardo joined the room.01:46:16
@ss:someonex.netSomeoneSerge (UTC+3) changed their display name from SomeoneSerge (UTC+1) to SomeoneSerge (is taking time off and doesn't want to hear about it).11:43:13
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:29:11
30 Apr 2024
@xondtx:matrix.orgondt joined the room.22:18:47
1 May 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:06:23
@daschw:matrix.orgdaschw joined the room.18:52:42

Show newer messages


Back to Room ListRoom Version: 6