You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You might decide that this is not your problem and the user is in charge of ensuring locale consistency across platforms and this would be a fair answer but I figured I could still open an issue just in case.
As illustrated in the reprex below, load_forecasts() output is locale-dependent because it is ordered according to the model column (when the models argument is absent from the load_forecasts() call) and this order change depending on the locale.
This causes unnecessary diffs (e.g., european-modelling-hubs/covid19-forecast-hub-europe_archive@be9803c) and potential confusion ("why am not getting the exact same result?") when contributors from different regions of the world / using different locales run the same piece of code.
The text was updated successfully, but these errors were encountered:
Bisaloo
changed the title
load_forecasts_repo() returns a data.frame where row order depends on localeload_forecasts_repo(models = NULL) returns a data.frame where row order depends on locale
Aug 11, 2021
You might decide that this is not your problem and the user is in charge of ensuring locale consistency across platforms and this would be a fair answer but I figured I could still open an issue just in case.
As illustrated in the reprex below,
load_forecasts()
output is locale-dependent because it is ordered according to themodel
column (when themodels
argument is absent from theload_forecasts()
call) and this order change depending on the locale.This causes unnecessary diffs (e.g., european-modelling-hubs/covid19-forecast-hub-europe_archive@be9803c) and potential confusion ("why am not getting the exact same result?") when contributors from different regions of the world / using different locales run the same piece of code.
I think an easy fix would be to change:
covidHubUtils/R/load_forecasts_repo.R
Line 50 in 1f97089
to
which always sorts according to a
C
locale and is thus locale-independent.Reprex:
The text was updated successfully, but these errors were encountered: