Skip to content

Commit

Permalink
added 'nix' as system_pkgs dependecy
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Rodrigues committed Jan 28, 2024
1 parent b197039 commit 11f6898
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion R/find_rev.R
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ tex_pkgs)
# to add it.
generate_system_pkgs <- function(system_pkgs, r_pkgs){
sprintf('system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales %s;
inherit (pkgs) R glibcLocales nix %s;
};
',
get_system_pkgs(system_pkgs, r_pkgs))
Expand Down
8 changes: 3 additions & 5 deletions dev/flat_build_envs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ tex_pkgs)
# to add it.
generate_system_pkgs <- function(system_pkgs, r_pkgs){
sprintf('system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales %s;
inherit (pkgs) R glibcLocales nix %s;
};
',
get_system_pkgs(system_pkgs, r_pkgs))
Expand Down Expand Up @@ -1296,7 +1296,7 @@ nix_rprofile <- function() {
```{r, tests-rix_init}
testthat::test_that("Snapshot test of rix_init()", {
skip_on_covr()
#skip_on_covr()
save_rix_init_test <- function() {
Expand Down Expand Up @@ -2159,9 +2159,7 @@ testthat::test_that("Testing with_nix() if Nix is installed", {
#skip_on_covr()
path_subshell <- file.path(".", "_env_R_3_5_3")
on.exit(unlink(path_subshell, recursive = TRUE, force = TRUE))
path_subshell <- tempdir()
rix_init(
project_path = path_subshell,
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/find_rev/code_default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let
inherit (pkgs.texlive) scheme-small amsmath;
});
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales quarto;
inherit (pkgs) R glibcLocales nix quarto;
};
in
pkgs.mkShell {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/find_rev/no_quarto_default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let
inherit (pkgs.rPackages) dplyr;
};
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales ;
inherit (pkgs) R glibcLocales nix ;
};
in
pkgs.mkShell {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/find_rev/other_default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let
inherit (pkgs.texlive) scheme-small amsmath;
});
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales quarto;
inherit (pkgs) R glibcLocales nix quarto;
};
in
pkgs.mkShell {
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/find_rev/rstudio_default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let
inherit (pkgs.texlive) scheme-small amsmath;
});
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales quarto;
inherit (pkgs) R glibcLocales nix quarto;
};
rstudio_pkgs = pkgs.rstudioWrapper.override {
packages = [ git_archive_pkgs rpkgs ];
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/find_rev/yes_quarto_default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let
inherit (pkgs.rPackages) dplyr quarto;
};
system_packages = builtins.attrValues {
inherit (pkgs) R glibcLocales quarto;
inherit (pkgs) R glibcLocales nix quarto;
};
in
pkgs.mkShell {
Expand Down
6 changes: 2 additions & 4 deletions tests/testthat/test-find_rev.R
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ testthat::test_that("Quarto gets added to sys packages", {

testthat::test_that("Snapshot test of rix_init()", {

skip_on_covr()
#skip_on_covr()

save_rix_init_test <- function() {

Expand Down Expand Up @@ -172,9 +172,7 @@ testthat::test_that("Testing with_nix() if Nix is installed", {

#skip_on_covr()

path_subshell <- file.path(".", "_env_R_3_5_3")

on.exit(unlink(path_subshell, recursive = TRUE, force = TRUE))
path_subshell <- tempdir()

rix_init(
project_path = path_subshell,
Expand Down

0 comments on commit 11f6898

Please sign in to comment.