GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — cli/R/onload.R at main · cderv/cli Expand file tree/ Copy pathonload.RMore file actions 60 lines (51 loc) · 1.37 KB / Copy pathonload.RFile metadata and controls60 lines (51 loc) · 1.37 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 ## nocov start dummy <- function() { } clienv <- new.env() clienv$pid <- Sys.getpid() .onLoad <- function(libname, pkgname) { lazyrmd$onload_hook( local = "if-newer", ci = function() has_asciicast_support() && getRversion() >= "3.3", cran = FALSE ) pkgenv <- environment(dummy) makeActiveBinding( "symbol", function() { ## If `cli.unicode` is set we use that opt <- getOption("cli.unicode", NULL) if (!is.null(opt)) { if (isTRUE(opt)) { if (rstudio$is_rstudio()) { return(symbol_rstudio) } else { return(symbol_utf8) } } else { return(symbol_ascii) } } ## Otherwise we try to auto-detect rst <- rstudio$detect()$type rok <- c("rstudio_console", "rstudio_console_starting") if (is_utf8_output() && rstudio$is_rstudio()) { symbol_rstudio } else if (is_utf8_output()) { symbol_utf8 } else if (is_latex_output()) { symbol_ascii } else if (is_windows() && .Platform$GUI == "Rgui") { symbol_win } else if (is_windows() && rst %in% rok) { symbol_win } else { symbol_ascii } }, pkgenv ) if (is.null(getOption("callr.condition_handler_cli_message"))) { options(callr.condition_handler_cli_message = cli__default_handler) } } ## nocov end |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |