{"id":13423704,"url":"https://github.com/rspatial/terra","last_synced_at":"2025-05-14T02:04:52.314Z","repository":{"id":37431923,"uuid":"148741225","full_name":"rspatial/terra","owner":"rspatial","description":"R package for spatial data handling https://rspatial.github.io/terra/reference/terra-package.html","archived":false,"fork":false,"pushed_at":"2025-05-10T11:22:50.000Z","size":220226,"stargazers_count":566,"open_issues_count":50,"forks_count":96,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-05-10T11:47:56.654Z","etag":null,"topics":["geospatial","r","r-package","raster","spatial","vector"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rspatial.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-09-14T05:45:27.000Z","updated_at":"2025-05-10T11:36:38.000Z","dependencies_parsed_at":"2023-10-15T16:33:00.775Z","dependency_job_id":"d8edb6f8-5bc9-4430-852a-9f789693238e","html_url":"https://github.com/rspatial/terra","commit_stats":{"total_commits":4524,"total_committers":51,"mean_commits":88.70588235294117,"dds":0.0515030946065429,"last_synced_commit":"b8045f4a2184d1e5234e4a326b490c2a16ac98ef"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspatial%2Fterra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspatial%2Fterra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspatial%2Fterra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspatial%2Fterra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rspatial","download_url":"https://codeload.github.com/rspatial/terra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253561097,"owners_count":21927763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geospatial","r","r-package","raster","spatial","vector"],"created_at":"2024-07-31T00:00:40.944Z","updated_at":"2025-05-14T02:04:52.305Z","avatar_url":"https://github.com/rspatial.png","language":"C++","readme":"# terra \u003cimg align=\"right\" width=\"250\" src=\"man/figures/logo.png\"\u003e\n\n\u003cp align=\"right\"; style=\"font-size:11px\"\u003elogo by Zane Dax\u003c/p\u003e\n\n[![rcmdcheck](https://github.com/rspatial/terra/actions/workflows/rcmdcheck.yml/badge.svg)](https://github.com/rspatial/terra/actions/workflows/rcmdcheck.yml)\n[![CRAN\nstatus](https://www.r-pkg.org/badges/version/terra)](https://cran.r-project.org/package=terra)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/terra)](https://www.r-pkg.org/pkg/terra)\n[![StackOverflow](https://img.shields.io/stackexchange/stackoverflow/t/terra?logo=stackoverflow\u0026label=Questions)](https://stackoverflow.com/questions/tagged/terra)\n\n`terra` is an *R* package for spatial data analysis. There are tutorials at [rspatial.org](https://rspatial.org/index.html). \n\n[Stack Overflow](https://stackoverflow.com/questions/tagged/terra) is a good place to ask questions if you get stuck. Make sure to include a [simple reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example). But if you think you have found a bug, or if you want to request a new feature, please file an [issue](https://github.com/rspatial/terra/issues).\n\n`terra` replaces the [raster](https://github.com/rspatial/raster) package. The interfaces of `terra` and `raster` are similar, but `terra` is simpler, faster and can do more. \n\n\n## Installation\n\n`terra` is available from CRAN, so you can use `install.packages(\"terra\")` to get the current *released version*.\n\nThe easiest way to use the *development version* on Windows or MacOS, is to install it from the [R-universe](https://r-universe.dev/organizations/), like this:\n\n\n```\ninstall.packages('terra', repos='https://rspatial.r-universe.dev')\n```\n\n\n### From source-code\n\nTo install from source-code, first install the [Rcpp](https://cran.r-project.org/web/packages/Rcpp/index.html) package that terra depends on: \n\n```\ninstall.packages(\"Rcpp\")\n```\n\nAnd then continue based on the OS you are using. \n\n#### Windows\n\nOn Windows, you need to first install [Rtools](https://cran.r-project.org/bin/windows/Rtools/) to get, among other things, a C++ compiler that *R* can use. You need the current versions of *R* and *RTools*.\n\nThen, in *R*, install terra with:\n\n```\nremotes::install_github(\"rspatial/terra\")\n```\n\n#### macOS\n\nOn macOS, you can use [MacPorts](https://www.macports.org/) or [Homebrew](https://brew.sh/).\n\nWith MacPorts you can do \n\n```\nsudo port install R-terra\n```\n\nWith Homebrew, you need to first install GDAL and PROJ:\n\n```\nbrew install pkg-config\nbrew install gdal proj\n```\n\nFollowed by (note the additional configuration argument needed for Homebrew)\n\n```\nremotes::install_github(\"rspatial/terra\", configure.args = \"--with-proj-lib=$(brew --prefix)/lib/\")\n```\n\nTo install the CRAN version from source you would do\n\n```\ninstall.packages(\"terra\", type = \"source\", configure.args = \"--with-proj-lib=$(brew --prefix)/lib/\")\n```\n\n#### Linux\n\nThe *easy* way to install terra on Ubuntu is with [r2u](https://eddelbuettel.github.io/r2u/).\n\nThe harder way: \n\nInstall the system requirements GDAL (\u003e= 2.2.3), GEOS (\u003e= 3.4.0), PROJ (\u003e= 4.9.3), netcdf (\u003e=4.1.3), sqlite3, tbb \n\n\n```\nsudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable\nsudo apt-get update\nsudo apt-get install libgdal-dev libgeos-dev libproj-dev libtbb-dev libnetcdf-dev\n```\n\nAnd now, in R, install the package\n```\nremotes::install_github(\"rspatial/terra\")\n```\n\nSee the `sf` [instructions](https://github.com/r-spatial/sf) for installation on other linux systems --- and for possible updates/improvements on the above instructions.\n\n","funding_links":[],"categories":["C++","R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspatial%2Fterra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frspatial%2Fterra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspatial%2Fterra/lists"}