Get debug output from naomi

download_debug(
  id,
  dest = tempfile(),
  server = NULL,
  github_token = Sys.getenv("NAOMI_DOWNLOAD_DEBUG_TOKEN"),
  verbose = TRUE
)

Arguments

id

The model run id to download. This will be printed below the error message.

dest

The destination for the downloaded data. The actual data will be unpacked into a directory corresponding to the run id within this, so it is safe to use a common directory.

server

The url of the server. The default is to use the production naomi/hint/hintr instance. It is not possible to use the staging instance. You can change this if running locally.

github_token

Token with access to read hivtools org team members. Used to check you are a person with access to download debugs. Ideally don't pass this and use env var or interactive prompt instead.

verbose

Add a progress bar

Details

This uses GitHub authentication to pull the debug file. You need to

  1. Make sure you are a member of the naomi-debug GitHub team

  2. Generate a GitHub personal access token. Create a new fine-grained token. Set the resource owner to "hivtools" organisation. Under "Permissions" add "Members" read-only permission. And generate the token.

  3. Pass the token to this function, fill in the interactive prompt or set as an environment variable "NAOMI_DOWNLOAD_DEBUG_TOKEN".