Skip to content

Commit

Permalink
fix: unique name for book in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
js2264 committed Dec 19, 2023
1 parent 9b3a3b3 commit 3c6a80b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/doc.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
#'
#' @examples
#' ## In practice, you should not use `.local` argument.
#' bookname <- paste(Sys.info()[['sysname']], 'localbook1', sep = '.')
#' unique_id <- sample(c(LETTERS, 0:9), 8) |> paste(collapse = '')
#' bookname <- paste(Sys.info()[['sysname']], unique_id, sep = '.')
#' bb <- init(bookname, .local = TRUE)
#' add_preamble(bb, open = FALSE)
#' add_chapter(bb, title = "Chapitre Un", open = FALSE)
Expand Down Expand Up @@ -201,7 +202,8 @@ NULL
#'
#' @examples
#' ## In practice, you should not use `.local` argument.
#' bookname <- paste(Sys.info()[['sysname']], 'localbook1', sep = '.')
#' unique_id <- sample(c(LETTERS, 0:9), 8) |> paste(collapse = '')
#' bookname <- paste(Sys.info()[['sysname']], unique_id, sep = '.')
#' init(bookname, .local = TRUE)
#' bb <- BiocBook(bookname)
#' chapters(bb)
Expand Down

0 comments on commit 3c6a80b

Please sign in to comment.