Running examples in ‘oxcgrt-Ex.R’ failed
The error most likely occurred in:

> ### Name: get_data
> ### Title: Get policy actions and stringency data from JSON
> ### Aliases: get_data
> 
> ### ** Examples
> 
> ## Get time series JSON endpoint
> x <- get_json_time(from = "2020-10-29", to = "2020-10-31")
> 
> ## Get time series stringency index data
> get_data(x)
# A tibble: 534 x 8
   date_value country_code confirmed deaths stringency_actu… stringency
   <date>     <chr>            <int>  <int>            <dbl>      <dbl>
 1 2020-10-29 ABW               4472     37            40.7       40.7 
 2 2020-10-29 AFG              41268   1534             5.56       5.56
 3 2020-10-29 AGO              10269    275            65.7       65.7 
 4 2020-10-29 ALB              20315    499            54.6       54.6 
 5 2020-10-29 AND               4567     73            63.0       63.0 
 6 2020-10-29 ARE             130336    488            50.9       50.9 
 7 2020-10-29 ARG            1143800  30442            81.9       81.9 
 8 2020-10-29 AUS              27579    907            45.8       45.8 
 9 2020-10-29 AUT              93949   1056            64.8       64.8 
10 2020-10-29 AZE              53152    708            64.4       64.4 
# … with 524 more rows, and 2 more variables: stringency_legacy <dbl>,
#   stringency_legacy_disp <dbl>
> 
> ## Get policy actions JSON endpoint
> x <- get_json_actions(ccode = "AFG", from = NULL, to = "2020-07-16")
> 
> ## Get data on policy actions and stringency index
> get_data(x)
Error: Problem with `mutate()` input `policyvalue`.
✖ object 'policyvalue' not found
ℹ Input `policyvalue` is `as.integer(policyvalue)`.
Backtrace:
    █
 1. ├─oxcgrt::get_data(x)
 2. │ └─`%>%`(...)
 3. ├─dplyr::mutate(., policyvalue = as.integer(policyvalue), notes = as.character(notes))
 4. ├─dplyr:::mutate.data.frame(...)
 5. │ └─dplyr:::mutate_cols(.data, ...)
 6. │   ├─base::withCallingHandlers(...)
 7. │   └─mask$eval_all_mutate(dots[[i]])
 8. └─base::.handleSimpleError(...)
 9.   └─dplyr:::h(simpleError(msg, call))
Execution halted