{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
bashInteractive
R
];
buildInputs = (
with pkgs; [
]) ++ (
with pkgs.rPackages; [
httpgd
]);
};
});
}
$ LANG=C nix develop .
$ R --no-save --no-restore
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
library(httpgd)
httpgd::hgd()
Error: path must point to a valid file
sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: NixOS 23.05 (Stoat)
Matrix products: default
BLAS/LAPACK: /nix/store/ippl67a888i0481zxq4y7m50qjrkswj9-blas-3/lib/libblas.so.3; LAPACK version 3.9.0
locale:
[1] C
time zone: Asia/Shanghai
tzcode source: system (glibc)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] httpgd_1.3.1
loaded via a namespace (and not attached):
[1] compiler_4.3.1 later_1.3.1 Rcpp_1.0.10 systemfonts_1.0.4
[5] rlang_1.1.1
// If applicable, add screenshots to help explain your problem.
Additional context
This problem arose when trying to enable httpgd integration of vscode-R extension. I am not familiar with R packaging of nix, and I am not able to use install.packages("httpgd") to install this package under home directory, nor can I debug R codes. Since this problem appeared on NixOS but not on Debian, I opened an issue here.
Notify maintainers
@jbedo, Thanks!
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
Describe the bug
rPackages.httpgd not working
Steps To Reproduce
Steps to reproduce the behavior: On NixOS 23.05
flake.nix
R version 4.3.1 (2023-06-16) -- "Beagle Scouts" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
Matrix products: default BLAS/LAPACK: /nix/store/ippl67a888i0481zxq4y7m50qjrkswj9-blas-3/lib/libblas.so.3; LAPACK version 3.9.0
locale: [1] C
time zone: Asia/Shanghai tzcode source: system (glibc)
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] httpgd_1.3.1
loaded via a namespace (and not attached): [1] compiler_4.3.1 later_1.3.1 Rcpp_1.0.10 systemfonts_1.0.4 [5] rlang_1.1.1
Expected behavior
on Debian sid, with httpgd installed from install.packages:
Screenshots
// If applicable, add screenshots to help explain your problem.
Additional context
This problem arose when trying to enable httpgd integration of vscode-R extension. I am not familiar with R packaging of nix, and I am not able to use
install.packages("httpgd")
to install this package under home directory, nor can I debug R codes. Since this problem appeared on NixOS but not on Debian, I opened an issue here.Notify maintainers
@jbedo, Thanks!
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.