When install_mistnet()
initiated download is not possible, but installation archive files are
present on local filesystem, install_mistnet_from_file()
can be used as a workaround to installation issues.
"libtorch"
is the archive containing all 'LibTorch' modules, and "libmistnet"
is the 'C' interface to 'LibTorch'
that is used for the 'R' package. Both are highly platform dependent, and should be checked through get_install_urls()
> get_install_urls()
$libtorch
[1] "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.10.2%2Bcpu.zip"$libmistnet
[1] "https://s3.amazonaws.com/vol2bird-builds/vol2birdr/refs/heads/main/latest/Linux-cpu.zip"
$mistnet_model
[1] "http://mistnet.s3.amazonaws.com/mistnet_nexrad.pt"
In a terminal, download above zip-files.
%> mkdir /tmp/myfiles
%> cd /tmp/myfiles
%> wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.10.2%2Bcpu.zip
%> wget https://s3.amazonaws.com/vol2bird-builds/vol2birdr/refs/heads/main/latest/Linux-cpu.zip
%> wget http://mistnet.s3.amazonaws.com/mistnet_nexrad.pt
Then in R, type:
> install_mistnet_from_file(libtorch="file:///tmp/myfiles/libtorch-cxx11-abi-shared-with-deps-1.10.2+cpu.zip",
libmistnet="file:///tmp/myfiles/Linux-cpu.zip",
mistnet_model="file:///tmp/myfiles/mistnet_nexrad.pt")