Skip to contents

Get and print the last response for debugging or when catching errors.

Usage

last_response()

Value

Last httr2 response or NULL.

Examples

test_connection(logical = TRUE)
#> Ollama local server not running or wrong server.
#> Download and launch Ollama app to run the server. Visit https://ollama.com or https://github.com/ollama/ollama
#> [1] FALSE
last_response()
#> NULL
#> NULL