install_mistnet_from_file {vol2birdR} | R Documentation |
Install 'MistNet' libraries from files
Description
Installs 'LibTorch' and 'MistNet' dependencies from files.
Usage
install_mistnet_from_file(
version = "1.12.1",
libtorch,
libmistnet,
mistnet_model = NULL,
...
)
Arguments
version |
The 'LibTorch' version to install. |
libtorch |
The installation archive file to use for 'LibTorch'. Shall be a |
libmistnet |
The installation archive file to use for 'MistNet'. Shall be a |
mistnet_model |
The installation archive file to use for the model. Shall be a |
... |
other parameters to be passed to |
Details
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")
Value
a list with character urls
See Also
Examples
# get paths to files to be downloaded
get_install_urls()
# download the files to a directory on disk, e.g. to /tmp/myfile,
# then install with:
## Not run:
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")
## End(Not run)