error
py_error.py
Execution end time
2025-08-25T10:00:11 Central European Summer Time
Path to script
/Users/oath/Projects/whirl/tests/testthat/scripts/py_error.py
Summary
Script
Session info
Platform
| Setting | Value |
|---|---|
| version | R version 4.5.1 (2025-06-13) |
| os | macOS Sequoia 15.6.1 |
| system | aarch64, darwin20 |
| ui | X11 |
| language | C |
| collate | C |
| ctype | en_US.UTF-8 |
| tz | Europe/Copenhagen |
| date | 2025-08-25 |
| pandoc | 3.7.0.2 @ /opt/homebrew/bin/ (via rmarkdown) |
| quarto | 1.6.42 @ /Applications/quarto/bin/quarto |
| python | 3.13 @ /Users/oath/.virtualenvs/r-reticulate/bin/python |
Python packages used directly
| Package | Version | Directly Used | Path |
|---|---|---|---|
Python packages used indirectly
| Package | Version | Path |
|---|---|---|
R packages used directly
| Package | Version | Source |
|---|---|---|
| knitr | 1.50 | CRAN (R 4.5.0) |
| rmarkdown | 2.29 | CRAN (R 4.5.0) |
| sessioninfo | 1.2.3 | CRAN (R 4.5.0) |
| whirl | 0.3.0.9009 | local |
R packages used indirectly
| Package | Version | Source |
|---|---|---|
| brio | 1.1.5 | CRAN (R 4.5.0) |
| callr | 3.7.6 | CRAN (R 4.5.0) |
| cli | 3.6.5 | CRAN (R 4.5.0) |
| digest | 0.6.37 | CRAN (R 4.5.0) |
| dplyr | 1.1.4 | CRAN (R 4.5.0) |
| evaluate | 1.0.4 | CRAN (R 4.5.0) |
| fastmap | 1.2.0 | CRAN (R 4.5.0) |
| fs | 1.6.6 | CRAN (R 4.5.0) |
| generics | 0.1.4 | CRAN (R 4.5.0) |
| glue | 1.8.0 | CRAN (R 4.5.0) |
| htmltools | 0.5.8.1 | CRAN (R 4.5.0) |
| htmlwidgets | 1.6.4 | CRAN (R 4.5.0) |
| jsonlite | 2.0.0 | CRAN (R 4.5.0) |
| lattice | 0.22-7 | CRAN (R 4.5.1) |
| lifecycle | 1.0.4 | CRAN (R 4.5.0) |
| magrittr | 2.0.3 | CRAN (R 4.5.0) |
| Matrix | 1.7-3 | CRAN (R 4.5.1) |
| pillar | 1.11.0 | CRAN (R 4.5.0) |
| pkgconfig | 2.0.3 | CRAN (R 4.5.0) |
| pkgload | 1.4.0 | CRAN (R 4.5.0) |
| png | 0.1-8 | CRAN (R 4.5.0) |
| processx | 3.8.6 | CRAN (R 4.5.0) |
| ps | 1.9.1 | CRAN (R 4.5.0) |
| R6 | 2.6.1 | CRAN (R 4.5.0) |
| Rcpp | 1.1.0 | CRAN (R 4.5.0) |
| reticulate | 1.43.0 | CRAN (R 4.5.0) |
| rlang | 1.1.6 | CRAN (R 4.5.0) |
| testthat | 3.2.3 | CRAN (R 4.5.0) |
| tibble | 3.3.0 | CRAN (R 4.5.0) |
| tidyselect | 1.2.1 | CRAN (R 4.5.0) |
| vctrs | 0.6.5 | CRAN (R 4.5.0) |
| xfun | 0.52 | CRAN (R 4.5.0) |
| yaml | 2.3.10 | CRAN (R 4.5.0) |
Environment variables
| Variable | Value |
|---|---|
| ANTHROPIC_BASE_URL | https://api.marketplace.novo-genai.com |
| ANTHROPIC_MODEL | anthropic_claude_sonnet_4_v1_0 |
| ANTHROPIC_SMALL_FAST_MODEL | openai_gpt41_mini |
| CALLR_IS_RUNNING | true |
| COLORTERM | truecolor |
| COMMAND_MODE | unix2003 |
| CYGWIN | nodosfilewarning |
| DATABRICKS_HOST | adb-273240340063409.9.azuredatabricks.net |
| DENO_DOM_PLUGIN | /Applications/quarto/bin/tools/aarch64/deno_dom/libplugin.dylib |
| DENO_NO_UPDATE_CHECK | 1 |
| DENO_TLS_CA_STORE | system,mozilla |
| DISABLE_TELEMETRY | 1 |
| EDITOR | vi |
| GIT_ASKPASS | /Applications/Positron.app/Contents/Resources/app/extensions/git/dist/askpass.sh |
| HOME | /Users/oath |
| HOMEBREW_CELLAR | /opt/homebrew/Cellar |
| HOMEBREW_PREFIX | /opt/homebrew |
| HOMEBREW_REPOSITORY | /opt/homebrew |
| INFOPATH | /opt/homebrew/share/info:/opt/homebrew/share/info: |
| LANG | en_US.UTF-8 |
| LANGUAGE | C |
| LC_COLLATE | C |
| LN_S | ln -s |
| LOGNAME | oath |
| MAKE | make |
| MallocNanoZone | 0 |
| NODE_EXTRA_CA_CERTS | /users/oath/do_not_delete/Zscaler.pem |
| NOT_CRAN | true |
| OPENAI_BASE_URL | https://api.marketplace.novo-genai.com/v1 |
| ORIGINAL_XDG_CURRENT_DESKTOP | undefined |
| PAGER | /usr/bin/less |
| PATH | /Users/oath/.virtualenvs/r-reticulate/bin:/Applications/quarto/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/TeX/texbin:/Applications/Positron.app/Contents/Resources/app/extensions/positron-python/python_files/deactivate/zsh:/opt/homebrew/opt/icu4c@77/sbin:/opt/homebrew/opt/icu4c@77/bin:/Users/oath/.local/bin:/Users/oath/.positron/extensions/ms-python.debugpy-2025.6.0-darwin-arm64/bundled/scripts/noConfigScripts |
| PKGLOAD_PARENT_TEMPDIR | /var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T//Rtmpy6amWS |
| POSITRON | 1 |
| POSITRON_LONG_VERSION | 2025.08.0+130 |
| POSITRON_MODE | desktop |
| POSITRON_VERSION | 2025.08.0 |
| PROCESSX_PS1545e6ab0aa04_1756108808 | YES |
| PROCESSX_PS15efe53389c0d_1756108809 | YES |
| PWD | /private/var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T/Rtmpy6amWS/file1545e746a2354 |
| PYDEVD_DISABLE_FILE_VALIDATION | 1 |
| PYTHONPATH | |
| PYTHONPYCACHEPREFIX | /Users/oath/Library/Application Support/Positron/User/globalStorage/ms-python.python/pycache |
| QUARTO_DENO | /Applications/quarto/bin/tools/aarch64/deno |
| QUARTO_PROFILE | |
| QUARTO_PROJECT_DIR | /private/var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T/Rtmpy6amWS/file1545e746a2354 |
| QUARTO_PROJECT_ROOT | /private/var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T/Rtmpy6amWS/file1545e746a2354 |
| QUARTO_R | /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/bin |
| QUARTO_ROOT | / |
| RENV_CONFIG_PAK_ENABLED | TRUE |
| RENV_SANDBOX_LOCKING_ENABLED | FALSE |
| RSTUDIO_CONSOLE_WIDTH | 80 |
| RSTUDIO_PANDOC | /Applications/Positron.app/Contents/Resources/app/quarto/bin/tools/aarch64 |
| RUST_BACKTRACE | 1 |
| RUST_LOG | warn,ark=warn |
| R_ARCH | |
| R_BROWSER | false |
| R_BZIPCMD | /usr/bin/bzip2 |
| R_DOC_DIR | /Library/Frameworks/R.framework/Resources/doc |
| R_GZIPCMD | /usr/bin/gzip |
| R_HOME | /Library/Frameworks/R.framework/Resources |
| R_INCLUDE_DIR | /Library/Frameworks/R.framework/Resources/include |
| R_LIBS | /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/library |
| R_LIBS_SITE | /Library/Frameworks/R.framework/Resources/site-library |
| R_LIBS_USER | /Users/oath/Library/R/arm64/4.5/library |
| R_PAPERSIZE | a4 |
| R_PAPERSIZE_USER | a4 |
| R_PDFVIEWER | false |
| R_PLATFORM | aarch64-apple-darwin20 |
| R_PRINTCMD | lpr |
| R_QPDF | /Library/Frameworks/R.framework/Resources/bin/qpdf |
| R_RD4PDF | times,inconsolata,hyper |
| R_REMOTES_UPGRADE | never |
| R_SESSION_INITIALIZED | PID=89872:NAME="reticulate" |
| R_SESSION_TMPDIR | /var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T//RtmpPXpCpo |
| R_SHARE_DIR | /Library/Frameworks/R.framework/Resources/share |
| R_STRIP_SHARED_LIB | strip -x |
| R_STRIP_STATIC_LIB | strip -S |
| R_TESTS | |
| R_TEXI2DVICMD | /opt/R/arm64/bin/texi2dvi |
| R_UNZIPCMD | /usr/bin/unzip |
| R_USER_CACHE_DIR | /var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T//Rtmpy6amWS/file1545e403ee5ea |
| R_ZIPCMD | /usr/bin/zip |
| SED | /usr/bin/sed |
| SF_PARTNER | posit_positron |
| SHELL | /bin/zsh |
| SHLVL | 2 |
| SPARK_CONNECT_USER_AGENT | posit-positron |
| SSH_AUTH_SOCK | /private/tmp/com.apple.launchd.qFno61QKgg/Listeners |
| TAR | /usr/bin/tar |
| TERM | dumb |
| TERM_PROGRAM | vscode |
| TERM_PROGRAM_VERSION | 1.102.0 |
| TESTTHAT | true |
| TESTTHAT_PKG | whirl |
| TMPDIR | /var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T/ |
| USER | oath |
| VIRTUAL_ENV | /Users/oath/.virtualenvs/r-reticulate |
| VIRTUAL_ENV_PROMPT | r-reticulate |
| VSCODE_DEBUGPY_ADAPTER_ENDPOINTS | /Users/oath/.positron/extensions/ms-python.debugpy-2025.6.0-darwin-arm64/.noConfigDebugAdapterEndpoints/endpoint-9f8306bd783e70dd.txt |
| VSCODE_ENV_PREPEND | PATH=/Applications/Positron.app/Contents/Resources/app/extensions/positron-python/python_files/deactivate/zsh\x3a/Users/oath/.virtualenvs/r-reticulate/bin\x3a:PS1=r-reticulate |
| VSCODE_ENV_REPLACE | PYTHONPYCACHEPREFIX=/Users/oath/Library/Application Support/Positron/User/globalStorage/ms-python.python/pycache:VIRTUAL_ENV=/Users/oath/.virtualenvs/r-reticulate:VIRTUAL_ENV_PROMPT=r-reticulate |
| VSCODE_GIT_ASKPASS_EXTRA_ARGS | |
| VSCODE_GIT_ASKPASS_MAIN | /Applications/Positron.app/Contents/Resources/app/extensions/git/dist/askpass-main.js |
| VSCODE_GIT_ASKPASS_NODE | /Applications/Positron.app/Contents/Frameworks/Positron Helper (Plugin).app/Contents/MacOS/Positron Helper (Plugin) |
| VSCODE_GIT_IPC_HANDLE | /var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T/vscode-git-913e34a768.sock |
| WHIRL_LOG_MSG | /var/folders/fx/71by3f551qzb5wkxt82cv15m0000gp/T//Rtmpy6amWS/file1545e746a2354/log_msg.json |
| XPC_FLAGS | 0x0 |
| XPC_SERVICE_NAME | 0 |
| _R_CHECK_BROWSER_NONINTERACTIVE_ | true |
| _R_CHECK_SYSTEM_CLOCK_ | 0 |
| __CFBundleIdentifier | co.posit.positron |
| __CF_USER_TEXT_ENCODING | 0x1F6:0x0:0x0 |
Options
| Option | Value |
|---|---|
| CBoundsCheck | FALSE |
| HTTPUserAgent | R (4.5.1 aarch64-apple-darwin20 aarch64 darwin20) |
| OutDec | . |
| PCRE_limit_recursion | NA |
| PCRE_study | FALSE |
| PCRE_use_JIT | TRUE |
| add.smooth | TRUE |
| ambiguousMethodSelection | function (cond) , NULL |
| askpass | function (prompt) , {, .ps.ui.askForPassword(prompt), } |
| bitmapType | quartz |
| browser | function (url) , {, .ps.Call("ps_browse_url", as.character(url)), } |
| browserNLdisabled | FALSE |
| callr.condition_handler_cli_message | function (msg) , {, custom_handler <- getOption("cli.default_handler"), if (is.function(custom_handler)) {, custom_handler(msg), }, else {, cli_server_default(msg), }, } |
| catch.script.errors | FALSE |
| check.bounds | FALSE |
| citation.bibtex.max | 1 |
| cli.condition_width | Inf |
| cli.default_num_colors | 256 |
| cli.dynamic | FALSE |
| cli.hyperlink | FALSE |
| cli.hyperlink_help | FALSE |
| cli.hyperlink_run | FALSE |
| cli.hyperlink_vignette | FALSE |
| cli.num_colors | 1 |
| cli.unicode | FALSE |
| cli.width | 80 |
| connectionObserver | function (type, host, displayName, icon = NULL, connectCode, , disconnect, listObjectTypes, listObjects, listColumns, previewObject, , connectionObject, actions = NULL) , {, for (id in ls(envir = connections)) {, con <- get(id, envir = connections), if (identical(con$host, host) && identical(con$type, , type)) {, return(invisible(id)), }, }, id <- .ps.connection_opened(displayName, host, type, connectCode), connections[[id]] <- list(type = type, host = host, displayName = displayName, , icon = icon, connectCode = connectCode, disconnect = disconnect, , listObjectTypes = listObjectTypes, listObjects = listObjects, , listColumns = listColumns, previewObject = previewObject, , connectionObject = connectionObject, actions = actions, , objectTypes = connection_flatten_object_types(listObjectTypes())), invisible(id), }, function (type, host) , {, for (id in names(connections)) {, con <- connections[[id]], if (con$host == host && con$type == type) {, .ps.connection_closed(id), rm(list = id, envir = connections), break, }, }, }, function (type, host, hint) , {, for (id in names(connections)) {, con <- connections[[id]], if (con$host == host && con$type == type) {, .ps.connection_updated(id), break, }, }, }, <environment: 0x11a216fd0> |
| continue | + |
| contrasts | contr.treatment, contr.poly |
| crayon.enabled | FALSE |
| defaultPackages | datasets , utils , grDevices, graphics , stats , methods |
| demo.ask | default |
| deparse.cutoff | 60 |
| device | function () , {, .ps.Call("ps_graphics_device"), } |
| device.ask.default | FALSE |
| devtools.ellipsis_action | function (message = NULL, class = NULL, ..., body = NULL, footer = NULL, , parent = NULL, use_cli_format = NULL, .inherit = NULL, .frequency = c("always", , "regularly", "once"), .frequency_id = NULL, .subclass = deprecated()) , {, message <- validate_signal_args(message, class, NULL, .subclass, , "warn"), message_info <- cnd_message_info(message, body, footer, caller_env(), , use_cli_format = use_cli_format), message <- message_info$message, extra_fields <- message_info$extra_fields, use_cli_format <- message_info$use_cli_format, .frequency <- arg_match0(.frequency, c("always", "regularly", , "once")), if (!needs_signal(.frequency, .frequency_id, warning_freq_env, , "rlib_warning_verbosity")) {, return(invisible(NULL)), }, if (!is_null(parent)) {, if (is_null(.inherit)) {, .inherit <- !inherits(parent, "error"), }, extra_fields$rlang <- c(extra_fields$rlang, list(inherit = .inherit)), }, cnd <- warning_cnd(class, message = message, !!!extra_fields, , use_cli_format = use_cli_format, parent = parent, ...), cnd$footer <- c(cnd$footer, message_freq(message, .frequency, , "warning")), local_long_messages(), warning(cnd), } |
| devtools.install.args | |
| devtools.path | ~/R-dev |
| diffobj.align.count.alnum.only | TRUE |
| diffobj.align.min.chars | 3 |
| diffobj.align.threshold | 0.25 |
| diffobj.brightness | neutral |
| diffobj.color.mode | yb |
| diffobj.context | 2 |
| diffobj.context.auto.max | 10 |
| diffobj.context.auto.min | 1 |
| diffobj.convert.hz.white.space | TRUE |
| diffobj.disp.width | 0 |
| diffobj.format | auto |
| diffobj.guides | TRUE |
| diffobj.html.escape.html.entities | TRUE |
| diffobj.html.output | auto |
| diffobj.html.scale | TRUE |
| diffobj.hunk.limit | -1 |
| diffobj.ignore.white.space | TRUE |
| diffobj.less.flags | R |
| diffobj.line.limit | -1 |
| diffobj.max.diffs | 50000 |
| diffobj.mode | auto |
| diffobj.pager | auto |
| diffobj.pager.file.keep | FALSE |
| diffobj.pager.file.path | NA |
| diffobj.pager.mode | threshold |
| diffobj.pager.threshold | -1 |
| diffobj.rds | TRUE |
| diffobj.silent | FALSE |
| diffobj.style | auto |
| diffobj.tab.stops | 8 |
| diffobj.trim | TRUE |
| diffobj.unwrap.atomic | TRUE |
| diffobj.warn | TRUE |
| diffobj.word.diff | TRUE |
| digits | 7 |
| dplyr.show_progress | TRUE |
| dvipscmd | dvips |
| echo | TRUE |
| editor | function (file, title, ..., name = NULL) , {, handler_editor(file = file, title = title, ..., name = name), } |
| encoding | native.enc |
| example.ask | default |
| expressions | 5000 |
| help.search.types | vignette, demo , help |
| help.try.all.packages | FALSE |
| help_type | html |
| htmltools.preserve.raw | TRUE |
| install.lock | FALSE |
| install.packages.compile.from.source | interactive |
| internet.info | 2 |
| keep.parse.data | TRUE |
| keep.parse.data.pkgs | FALSE |
| keep.source | TRUE |
| keep.source.pkgs | FALSE |
| knitr.in.progress | TRUE |
| lifecycle_verbosity | warning |
| locatorBell | TRUE |
| mailer | mailto |
| matprod | default |
| max.contour.segments | 25000 |
| max.print | 99999 |
| menu.graphics | TRUE |
| na.action | na.omit |
| nwarnings | 50 |
| pager | /Library/Frameworks/R.framework/Resources/bin/pager |
| papersize | a4 |
| pdfviewer | /usr/bin/open |
| pkgType | both |
| plumber.docs.callback | function (url) , {, .ps.ui.showUrl(url), } |
| printcmd | lpr |
| prompt | > |
| renv.sandbox.locking_enabled | FALSE |
| repos | https://cran.rstudio.com/ |
| rlang_interactive | FALSE |
| rlang_trace_top_env | <environment: 0x11a241bc0> |
| scipen | 0 |
| shiny.launch.browser | function (url) , {, .ps.ui.showUrl(url), } |
| show.coef.Pvalues | TRUE |
| show.error.messages | TRUE |
| show.signif.stars | TRUE |
| showErrorCalls | FALSE |
| showNCalls | 50 |
| showWarnCalls | FALSE |
| str | no, 3, 4, 99, TRUE, function (x, ...) , format(x, trim = TRUE, drop0trailing = TRUE, ...) |
| str.dendrogram.last | ` |
| testthat.snapshotter | <environment: 0x11a261be0> |
| testthat_path | test-run.R |
| testthat_topenv | <environment: 0x11a241bc0> |
| texi2dvi | /opt/R/arm64/bin/texi2dvi |
| tikzMetricsDictionary | dummy-tikzDictionary |
| timeout | 60 |
| topLevelEnvironment | <environment: 0x11a373798> |
| try.outFile | 3 |
| ts.S.compat | FALSE |
| ts.eps | 1e-05 |
| unzip | /usr/bin/unzip |
| useFancyQuotes | FALSE |
| verbose | FALSE |
| viewer | function (url, height = NULL, ...) , {, if (!is_string(url)) {, stop("`url` must be a string."), }, height <- .ps.validate.viewer.height(height), if (is_http_url(url)) {, return(utils::browseURL(url, ...)), }, normalizedPath <- normalizePath(url, mustWork = FALSE), normalizedTempdir <- normalizePath(tempdir(), mustWork = FALSE), if (startsWith(normalizedPath, normalizedTempdir)) {, title <- .ps.viewer.title(normalizedPath), .ps.Call("ps_html_viewer", normalizedPath, title, height, , FALSE), }, else {, utils::browseURL(normalizedPath, ...), }, } |
| warn | 0 |
| warnPartialMatchArgs | FALSE |
| warnPartialMatchAttr | FALSE |
| warnPartialMatchDollar | FALSE |
| warning.length | 1000 |
| whirl.verbosity_level | quiet |
| width | 80 |