Install from CRAN
The stable release of OpenLand is available on CRAN. This is the recommended installation method for most users:Install from GitHub
To access the latest development features or bug fixes, install directly from GitHub:The development version may contain experimental features and is recommended only for users who need cutting-edge functionality or want to contribute to package development.
System Requirements
R Version
OpenLand requires R ≥ 3.4.0. Check your R version:Dependencies
OpenLand automatically installs the following required packages:Core Dependencies
Core Dependencies
- dplyr (≥ 0.8.3) - Data manipulation
- tidyr (≥ 1.0.0) - Data tidying
- ggplot2 (≥ 3.2.1) - Plotting
- gridExtra (≥ 2.3) - Arranging plots
- grid - Base graphics
Spatial & Visualization
Spatial & Visualization
- raster (≥ 3.0.7) - Raster data handling
- circlize (≥ 0.4.8) - Chord diagrams
- networkD3 (≥ 0.4) - Sankey diagrams
- methods - S4 class system
Optional Packages
Optional Packages
- tmap - Enhanced spatial visualization
- knitr - Vignette rendering
- rmarkdown - Documentation
Manual Dependency Installation
If you encounter dependency issues, install them manually:Verification
After installation, verify that OpenLand is working correctly:Download Example Dataset
The package includes preprocessed data (SL_2002_2014), but you can also download the original raster dataset:
The São Lourenço Basin dataset is approximately 22,400 km² covering the years 2002, 2008, 2010, 2012, and 2014. It’s provided by Embrapa Pantanal, Instituto SOS Pantanal, and WWF-Brasil.
Troubleshooting
Installation Fails on Linux
Some spatial packages require system libraries. On Ubuntu/Debian:macOS Issues
If you encounter compilation errors on macOS, ensure you have Xcode command line tools:Windows Issues
Windows users may need Rtools to compile packages from source:- Download Rtools matching your R version
- Install with default settings
- Restart R and retry installation
Dependency Conflicts
If you have package version conflicts:Getting Help
GitHub Issues
Report bugs or request features on the official repository.
Package Documentation
Access comprehensive function documentation:
Next Steps
Now that OpenLand is installed, you’re ready to analyze land use change data:Quick Start Tutorial
Follow a complete example using the São Lourenço Basin dataset to learn the core OpenLand workflow.