inst/httptest2/redact.R

function(resp) {
  resp |>
    # shorten url
    httptest2::gsub_response(pattern = 'api.planscore.org/', '') |>
    # redact key
    httptest2::gsub_response(pattern = planscorer::ps_get_key(), '')
}

Try the planscorer package in your browser

Any scripts or data that you put into this service are public.

planscorer documentation built on Sept. 24, 2024, 5:08 p.m.