Installing this package ensures that the R packages needed for the AniMove course are available on each participant's computer. In addition, it provides example data to be used during the lectures.
Please make sure that the GDAL libraries are installed on your system (for the time being we might still be using some packages that depend on GDAL).
sudo apt install gdal-bin libgdal-dev
install.packages("remotes")
remotes::install_github("AniMoveCourse/animove_R_package")
If you get an error message that MODIStsp
cannot be installed. Please install it first directly through R install.packages("MODIStsp")
. You might be missing some dependencies on the system, instructions will be given with the error message (scroll up). For Ubuntu users these might be the following:
sudo apt install libjq-dev
sudo apt install libprotobuf-dev
sudo apt install protobuf-compiler
Once these are successfully installed, install the animove_R_package
package again
If you get a issue similar to:
Error: Failed to install 'unknown package' from GitHub:
HTTP error 401.
Bad credentials
The suggestion described here should solve it
library(animove)
## Load movement data of African buffalo
data(buffalo_ll_mv2) # unprojected (LatLong)
data(buffalo_utm_mv2) # projected (UTM 36S)
## Environmental layers
data(buffalo_env)
## Plot
plot(buffalo_env[[1]])
points(sf::st_coordinates(buffalo_utm_mv2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.