Skip to content

Commit

Permalink
update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Baumann committed Sep 2, 2023
1 parent 13180ff commit e85d522
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/find_rev.R
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,15 @@ create_default_nix <- function(path = file.path("inst", "extdata",
#' @return integer of the process ID (PID) of `nix-build` shell command
#' launched, if `nix_build()` call is assigned to an R object. Otherwise, it
#' will be returned invisibly.
#' @details The `nix-build` command line interface has more arguments. We will
#' probably not support all of them in this R wrapper, but currently we have
#' support for the following `nix-build` flags:
#' - `--max-jobs`: Maximum number of build jobs done in parallel by Nix.
#' According to the official docs of Nix, it defaults to `1`, which is one
#' core. This option can be useful for shared memory multiprocessing or
#' systems with high I/O latency. To set `--max-jobs` used, you can declare
#' with `options(rix.nix_build_max_jobs = <integer>)`. Once you call
#' `nix_build()` the flag will be propagated to the call of `nix-build`.
#' @export
nix_build <- function(project_path = ".",
exec_mode = c("blocking", "non-blocking")) {
Expand Down
9 changes: 9 additions & 0 deletions dev/build_envs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,15 @@ session.
#' @return integer of the process ID (PID) of `nix-build` shell command
#' launched, if `nix_build()` call is assigned to an R object. Otherwise, it
#' will be returned invisibly.
#' @details The `nix-build` command line interface has more arguments. We will
#' probably not support all of them in this R wrapper, but currently we have
#' support for the following `nix-build` flags:
#' - `--max-jobs`: Maximum number of build jobs done in parallel by Nix.
#' According to the official docs of Nix, it defaults to `1`, which is one
#' core. This option can be useful for shared memory multiprocessing or
#' systems with high I/O latency. To set `--max-jobs` used, you can declare
#' with `options(rix.nix_build_max_jobs = <integer>)`. Once you call
#' `nix_build()` the flag will be propagated to the call of `nix-build`.
#' @export
nix_build <- function(project_path = ".",
exec_mode = c("blocking", "non-blocking")) {
Expand Down
13 changes: 13 additions & 0 deletions man/nix_build.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e85d522

Please sign in to comment.