Skip to content

Commit

Permalink
make examples render in pkgdown help
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-baumann committed Feb 2, 2024
1 parent c8dbe77 commit b7f3f6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions R/with_nix.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@
#' message_type = "simple"
#' )
#'
#' ## You can also use packages, which will be exported to the nix-R session
#' ## running through `nix-shell` environment
#' R 4.2.2
#' ## You can also attach packages with `library()` calls in the current R
#' ## session, which will be exported to the nix-R session.
#' ## Other option: running system commands through `nix-shell` environment.
#' }
with_nix <- function(expr,
program = c("R", "shell"),
Expand Down
2 changes: 0 additions & 2 deletions dev/flat_nix_build.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,5 @@ testthat::test_that("Testing that `nix_build()` builds derivation", {
testthat::expect_true(
out$status == 0L
)
unlink(file.path(path_subshell, "nix-build"))
})
```
6 changes: 3 additions & 3 deletions dev/flat_with_nix.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ environment.
#' message_type = "simple"
#' )
#'
#' #' ## You can also use packages, which will be exported to the nix-R session
#' ## running through `nix-shell` environment
#' R 4.2.2
#' ## You can also attach packages with `library()` calls in the current R
#' ## session, which will be exported to the nix-R session.
#' ## Other option: running system commands through `nix-shell` environment.
#' }
with_nix <- function(expr,
program = c("R", "shell"),
Expand Down

0 comments on commit b7f3f6a

Please sign in to comment.