This guide describes how to set up and run the Animal MoveLab application using RStudio.
- An installation of R (version 4.3.3 or higher).
- RStudio Desktop.
- Git command-line tools.
First, clone this repository to your local machine.
You can do this using the git clone command in your terminal:
git clone https://github.com/lynglink/AnimalMoveLab
cd AnimalMoveLabAlternatively, you can create a new project from version control within RStudio:
- Go to
File > New Project > Version Control > Git. - Enter
https://github.com/lynglink/AnimalMoveLabin the "Repository URL" field. - Choose a local directory to store the project.
- Click "Create Project".
This project uses a standard R package structure. All required packages are listed in the DESCRIPTION file. To install them, open the project in RStudio and run the following command in the console:
# Installs the 'remotes' package if you don't have it
if (!require("remotes")) {
install.packages("remotes")
}
# Installs all package dependencies from the DESCRIPTION file
remotes::install_deps(dependencies = TRUE)This command will read the Imports and Suggests fields in the DESCRIPTION file and install all necessary packages.
Once the dependencies are installed, you can run the Shiny application. Execute the following command in the RStudio console:
run_app()The Animal MoveLab application should now launch in a new window or in the RStudio Viewer pane.