Nothing
type_convert_silent()
to parse NA
strings as characters, not explicit
missing values.ipc_get_analyses()
call to properly pass country
parameter to the API.ipc_get()
is more robust by defaulting
to requesting a CSV return from the API rather than JSON, allowing for simpler
cleaning in all ipc_get_...()
functions.return_format
to be specified as GeoJSON for ipc_get_areas()
, directly
loading in an sf
object.ipc_get_population()
nested JSONs to be more robust
to changes in the API.R-CMD-check
GitHub Action to run weekly to check for changes to the API,
since all function examples are re-run during the check.ipc_get_population()
to deal with missing areas data when it is
removed from the API.assert_start_end()
so it correctly tests start
and end
parameters
without generating an error.ipc_get()
to initially read all numeric vectors as character in as
some errors were created in nested data frames that only contained integers.ipg_get_...()
functions returned properly parsed numeric
columns and fixed some unnesting data frames in ipc_get_areas()
.anl_id
column to always be analysis_id
.tidy_df
parameter so user can choose to receive data as
returned direct from the API, and fully document cleaning in each function.create_date_columns()
to avoid warnings when parsing missing
values in the period_dates
column.areas
output back to ipc_get_populations()
as it was added back
to the IPC APIipc_get_populations()
by removing calculations for the areas
data
frame which was removed from the APIipc_get_icons()
and ipc_get_populations()
changed so all date columns
converted from character to date explicitly.ipc_get_analyses()
and ipc_get_country()
changed to use anl_id
.ipc_get()
memoised to avoid repeated calls to the API. Now all
ipc_get_...()
functions are cached in a session.ipc_get_population()
was fixed so renaming worked correctlyAny scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.