diff --git a/R/doc.R b/R/doc.R index 2ccd3b9..7d5e70b 100644 --- a/R/doc.R +++ b/R/doc.R @@ -59,10 +59,11 @@ #' #' @examples #' ## In practice, you should not use `.local` argument. -#' bb <- init('localbook', .local = TRUE) +#' bookname <- paste(Sys.info()[['sysname']], 'localbook1', sep = '.') +#' bb <- init(bookname, .local = TRUE) #' add_preamble(bb, open = FALSE) #' add_chapter(bb, title = "Chapitre Un", open = FALSE) -#' unlink('localbook', recursive = TRUE) +#' unlink(bookname, recursive = TRUE) NULL #' @title Handling BiocBook directories @@ -167,9 +168,10 @@ NULL #' #' @examples #' ## In practice, you should not use `.local` argument. -#' init('localbook', .local = TRUE) -#' bb <- BiocBook('localbook') +#' bookname <- paste(Sys.info()[['sysname']], 'localbook1', sep = '.') +#' init(bookname, .local = TRUE) +#' bb <- BiocBook(bookname) #' chapters(bb) #' releases(bb) -#' unlink('localbook', recursive = TRUE) +#' unlink(bookname, recursive = TRUE) NULL diff --git a/man/BiocBook-editing.Rd b/man/BiocBook-editing.Rd index a0d2eff..584db23 100644 --- a/man/BiocBook-editing.Rd +++ b/man/BiocBook-editing.Rd @@ -110,10 +110,11 @@ existing Dockerfiles \examples{ ## In practice, you should not use `.local` argument. -bb <- init('localbook', .local = TRUE) +bookname <- paste(Sys.info()[['sysname']], 'localbook1', sep = '.') +bb <- init(bookname, .local = TRUE) add_preamble(bb, open = FALSE) add_chapter(bb, title = "Chapitre Un", open = FALSE) -unlink('localbook', recursive = TRUE) +unlink(bookname, recursive = TRUE) } \seealso{ \code{\link{BiocBook}} diff --git a/man/BiocBook.Rd b/man/BiocBook.Rd index c88a666..d158cd8 100644 --- a/man/BiocBook.Rd +++ b/man/BiocBook.Rd @@ -150,9 +150,10 @@ can be listed with \examples{ ## In practice, you should not use `.local` argument. -init('localbook', .local = TRUE) -bb <- BiocBook('localbook') +bookname <- paste(Sys.info()[['sysname']], 'localbook1', sep = '.') +init(bookname, .local = TRUE) +bb <- BiocBook(bookname) chapters(bb) releases(bb) -unlink('localbook', recursive = TRUE) +unlink(bookname, recursive = TRUE) }