# NOT RUN {
url <- "http://localhost:9200"
valid_connection(url)
# TRUE
url <- "http://localhost:9201"
valid_connection(url)
# Error: Failed to connect to localhost port 9201: Connection refused
# }
Run the code above in your browser using DataLab