hintr_submit_prerun: Submit a prerun to the web app

View source: R/prerun.R

hintr_submit_prerunR Documentation

Submit a prerun to the web app

Description

This requires VPN or RDP access to work.

Usage

hintr_submit_prerun(
  inputs,
  model_output,
  calibrate_output,
  server = "http://naomi.unaids.org",
  port = "8888",
  output_zip_path = tempfile(fileext = ".zip")
)

Arguments

inputs

The model inputs, a named list of file paths including pjnz, shape, population, survey and optionally programme and anc.

model_output

The hintr_output object from model fit

calibrate_output

The hintr_output object from calibration

server

The server URL to upload files to

port

The port the API is running on

output_zip_path

The path to save the output zip at, will use a tempfile by default

Details

This will take all model files and upload to a specified server and output the model output zip which can be saved into the ADR or uploaded into the Naomi app to view plots of model outputs.

Can use this for countries which cannot get a fit to work via the app you can prepare a model fit locally and then upload those outputs into the app.

Value

Path to the generated output zip


mrc-ide/hintr documentation built on May 1, 2024, 5:33 a.m.