|
1 | 1 | testthat::set_state_inspector(function() {
|
| 2 | + # sometimes a dependency might add a custom option, so we need to |
| 3 | + # make sure we don't fail because of such additions |
| 4 | + options <- options() |
| 5 | + |
| 6 | + # Result of `dput(names(options()))` |
| 7 | + base_options <- c( |
| 8 | + "add.smooth", "askpass", "asksecret", "bitmapType", "browser", |
| 9 | + "browserNLdisabled", "buildtools.check", "buildtools.with", "callr.condition_handler_cli_message", |
| 10 | + "CBoundsCheck", "check.bounds", "citation.bibtex.max", "connectionObserver", |
| 11 | + "continue", "contrasts", "defaultPackages", "demo.ask", "deparse.cutoff", |
| 12 | + "deparse.max.lines", "device", "device.ask.default", "digits", |
| 13 | + "download.file.method", "dvipscmd", "echo", "editor", "encoding", |
| 14 | + "example.ask", "expressions", "ggvis.renderer", "help_type", |
| 15 | + "help.search.types", "help.try.all.packages", "HTTPUserAgent", |
| 16 | + "install.packages.compile.from.source", "internet.info", "keep.parse.data", |
| 17 | + "keep.parse.data.pkgs", "keep.source", "keep.source.pkgs", "locatorBell", |
| 18 | + "mailer", "matprod", "max.contour.segments", "max.print", "menu.graphics", |
| 19 | + "na.action", "nwarnings", "OutDec", "page_viewer", "pager", "papersize", |
| 20 | + "PCRE_limit_recursion", "PCRE_study", "PCRE_use_JIT", "pdfviewer", |
| 21 | + "pkgType", "plumber.docs.callback", "plumber.swagger.url", "printcmd", |
| 22 | + "profvis.keep_output", "profvis.print", "profvis.prof_extension", |
| 23 | + "profvis.prof_output", "prompt", "repos", "restart", "reticulate.initialized", |
| 24 | + "reticulate.repl.busy", "reticulate.repl.hook", "reticulate.repl.initialize", |
| 25 | + "reticulate.repl.teardown", "rl_word_breaks", "rsconnect.check.certificate", |
| 26 | + "rstudio.notebook.executing", "RStudioGD.antialias", "RStudioGD.backend", |
| 27 | + "scipen", "shiny.launch.browser", "shinygadgets.showdialog", |
| 28 | + "show.coef.Pvalues", "show.error.messages", "show.signif.stars", |
| 29 | + "showErrorCalls", "showNCalls", "showWarnCalls", "str", "str.dendrogram.last", |
| 30 | + "terminal.manager", "texi2dvi", "timeout", "ts.eps", "ts.S.compat", |
| 31 | + "unzip", "useFancyQuotes", "verbose", "viewer", "warn", "warning.length", |
| 32 | + "warnPartialMatchArgs", "warnPartialMatchAttr", "warnPartialMatchDollar", |
| 33 | + "width" |
| 34 | + ) |
| 35 | + options <- options[base_options] |
| 36 | + |
2 | 37 | list(
|
3 | 38 | attached = search(),
|
4 | 39 | connections = nrow(showConnections()),
|
5 | 40 | cwd = getwd(),
|
6 | 41 | envvars = Sys.getenv(),
|
7 | 42 | libpaths = .libPaths(),
|
8 | 43 | locale = Sys.getlocale(),
|
9 |
| - options = .Options, |
| 44 | + options = options, |
10 | 45 | packages = .packages(all.available = TRUE),
|
11 | 46 | NULL
|
12 | 47 | )
|
|
0 commit comments