download_pretrained_vae {vmsae}R Documentation

Download and Extract a Pretrained VAE Model

Description

This function downloads a pretrained VAE model archive from Zenodo, extracts its contents into a specified directory, and removes the downloaded ZIP file after extraction.

Usage

download_pretrained_vae(model_name, save_dir, verbose = TRUE)

Arguments

model_name

Character. The name of the model file (without extension) to download. This should correspond to a ⁠*model_name*.zip⁠ file hosted on Zenodo (e.g., "ca_county").

save_dir

Character. The local directory where the model should be saved and extracted.

verbose

Logical; if TRUE (default), prints progress and error messages.

Value

No return value, called for side effects

Examples

## Not run: 
library(vmsae)
# this function is time consuming for the first run
install_environment()
load_environment()
download_pretrained_vae("mo_county", tempdir())

## End(Not run)


[Package vmsae version 0.1.1 Index]