diff --git a/R/doc.R b/R/doc.R index 903c1a2..f182f2d 100644 --- a/R/doc.R +++ b/R/doc.R @@ -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) @@ -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)