R is a free software environment for statistical computing and graphics. It can be used for spatial data analysis and GIS tasks. Spatial data such as points, polygons, and raster files can be imported and analyzed in R using specialized packages. Two case studies demonstrated using R for spatial interpolation of temperature data, LiDAR data processing to create digital elevation models, and developing online viewers for spatial datasets. R allows for reproducible analysis through scripting and has numerous packages that implement statistical procedures, graphics, and interfaces with GIS software like GRASS and ArcGIS.