Starts a browser session using rvest's read_html_live() and solves the Cloudflare challenge. All API calls will be made via this session.
Details
This function uses rvest::read_html_live() which internally uses
chromote to create a headless Chrome session. The session navigates to
the API domain to solve Cloudflare's JavaScript challenge.
The session stays open and is reused for all subsequent API calls.
Call comex_close() when done to free resources.
Examples
if (FALSE) { # \dontrun{
# Initialize session (called automatically on first API call)
comex_init()
# Make API calls
years <- comex_available_years()
# Close when done
comex_close()
} # }