Sender | Message | Time |
---|---|---|
5 Apr 2024 | ||
admin (Moderation Team) joined the room. | 18:16:45 | |
admin (Moderation Team) set the room name to "Nix Data Science". | 18:17:22 | |
Room Avatar Renderer. | 18:17:23 | |
admin (Moderation Team) left the room. | 18:17:28 | |
6 Apr 2024 | ||
guangtao joined the room. | 03:05:07 | |
patka left the room. | 05:55:24 | |
gibbs_ensamble joined the room. | 11:14:35 | |
7 Apr 2024 | ||
nik_ok joined the room. | 21:50:50 | |
8 Apr 2024 | ||
palo left the room. | 12:56:27 | |
Astro joined the room. | 18:30:49 | |
9 Apr 2024 | ||
Someone S changed their display name from SomeoneSerge (migrating synapse) to SomeoneSerge (void). | 13:23:24 | |
11 Apr 2024 | ||
cblacktech joined the room. | 19:32:50 | |
12 Apr 2024 | ||
SYMYƧ joined the room. | 03:29:36 | |
13 Apr 2024 | ||
gibbs_ensamble | Hello! The last few days I have been trying to install IRkernel on NixOS using a simple flake.nix that create a shell with R and some packages. However, IRkernel requires running the comand IRkernel::installspec() inside of the R repl. This commands 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 subfolder2) 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. | 13:55:00 |
gibbs_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 commands 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. | 14:01:57 |
gibbs_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. | 14:02:17 |
gibbs_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 subfolder2) 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. | 14:20:25 |
gibbs_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 subfolder2) 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 | You'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 | Originally copy.mode was not even specified, the line was like thisfile.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 |
jbedo | Open an issue and tag us | 01:07:23 |
jbedo | Btw there’s an r specific matrix room #r:nixos.org if you need help with r | 01:08:36 |
gibbs_ensamble | In reply to @jb:vk3.wtfOk thanks | 09:24:41 |
15 Apr 2024 | ||
reym joined the room. | 19:45:29 | |
17 Apr 2024 | ||
kupac | Hello, 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 | * 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 | I just realise this has nothing to do with nix, i don't know why I posted here :) | 09:23:31 |
baumann-philipp joined the room. | 20:39:09 | |
18 Apr 2024 | ||
SYMYƧ left the room. | 02:26:55 | |
nscnt joined the room. | 13:20:33 |