We now support loading forecast from a local zoltar sqlite file in covidHubUtils. To use this functionality, you need to set source = "local_zoltar" and provide the local_zoltpy_path and zoltar_sqlite_file parameters in load_forecasts().

Please follow these steps to set up the required environment prior to using this functionality for the first time:

Note: This feature is currently beta, so please contact us to create an sqlite file for you that contains the forecasts you want to work with.

  1. Install Python 3.6+.
  2. Install pipenv globally (i.e., without --user) via:
pip3 install pipenv
  1. Set up your R environment so that the PATH environment variable includes both the python3 and pipenv commands. You can read more about R and environment variables here.

  2. Clone the zoltpy package from here.

  3. In the cloned zoltpy directory, run:

pipenv --three
  1. Start your virtual environment via
pipenv shell
  1. In your virtual environment, install all required packages with
pipenv install
  1. Install R libraries: DBI and RSQLite in Rstudio
  2. Test installation
  models = "COVIDhub-ensemble", 
  locations = "US", 
  source = "local_zoltar", 
  local_zoltpy_path = "<your_zoltpy_dir>", 
  zoltar_sqlite_file = "<your_db.sqlite3_dir>")