Installs libraries and dependencies for using 'MistNet'.
install_mistnet(
version = "1.12.1",
reinstall = FALSE,
path = install_path(),
timeout = 360,
...
)no value returned. Installs libraries into the package
The 'LibTorch' version to install.
Re-install 'MistNet' even if its already installed?
Optional path to install or check for an already existing installation.
Optional timeout in seconds for large file download.
other optional arguments (like `load` for manual installation).
By default libraries are installed in the 'tools::R_user_dir("vol2birdR", "data")' directory.
When using path to install in a specific location, make sure the MISTNET_HOME environment
variable is set to this same path to reuse this installation.
The TORCH_INSTALL environment
variable can be set to 0 to prevent auto-installing 'LibTorch and TORCH_LOAD set to 0
to avoid loading dependencies automatically. These environment variables are meant for advanced use
cases and troubleshooting only.
When timeout error occurs during library archive download, or length of downloaded files differ from
reported length, an increase of the timeout value should help.
install_mistnet_from_file()
# \donttest{
install_mistnet()
# }
Run the code above in your browser using DataLab