|
279 | 279 | #' deploy: |
280 | 280 | #' install_metadata: true |
281 | 281 | #' ``` |
282 | | -#' |
283 | | -#' # Options |
284 | | -#' Users with limited internet connectivity can disable CRAN checks by setting |
285 | | -#' `options(pkgdown.internet = FALSE)`. This will also disable some features |
286 | | -#' from pkgdown that requires an internet connectivity. However, if it is used |
287 | | -#' to build docs for a package that requires internet connectivity in examples |
288 | | -#' or vignettes, this connection is required as this option won't apply on them. |
289 | | -#' |
290 | | -#' Users can set a timeout for `build_site(new_process = TRUE)` with |
291 | | -#' `options(pkgdown.timeout = Inf)`, which is useful to prevent stalled builds from |
292 | | -#' hanging in cron jobs. |
293 | | -#' |
294 | 282 | #' @inheritParams build_articles |
295 | 283 | #' @inheritParams build_reference |
296 | 284 | #' @param lazy If `TRUE`, will only rebuild articles and reference pages |
@@ -403,22 +391,19 @@ build_site_external <- function( |
403 | 391 | new_process = FALSE, |
404 | 392 | devel = devel, |
405 | 393 | cli_colors = cli::num_ansi_colors(), |
406 | | - hyperlinks = cli::ansi_has_hyperlink_support(), |
407 | | - pkgdown_internet = has_internet() |
| 394 | + hyperlinks = cli::ansi_has_hyperlink_support() |
408 | 395 | ) |
409 | 396 | callr::r( |
410 | | - function(..., cli_colors, hyperlinks, pkgdown_internet) { |
| 397 | + function(..., cli_colors, hyperlinks) { |
411 | 398 | options( |
412 | 399 | cli.num_colors = cli_colors, |
413 | 400 | cli.hyperlink = hyperlinks, |
414 | | - cli.hyperlink_run = hyperlinks, |
415 | | - pkgdown.internet = pkgdown_internet |
| 401 | + cli.hyperlink_run = hyperlinks |
416 | 402 | ) |
417 | 403 | pkgdown::build_site(...) |
418 | 404 | }, |
419 | 405 | args = args, |
420 | | - show = TRUE, |
421 | | - timeout = getOption('pkgdown.timeout', Inf) |
| 406 | + show = TRUE |
422 | 407 | ) |
423 | 408 |
|
424 | 409 | cli::cli_rule( |
|
0 commit comments