https://github.com/rspatial/geosphere
R geosphere package
https://github.com/rspatial/geosphere
Last synced: about 1 year ago
JSON representation
R geosphere package
- Host: GitHub
- URL: https://github.com/rspatial/geosphere
- Owner: rspatial
- License: gpl-3.0
- Created: 2018-07-31T02:09:30.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T02:47:06.000Z (over 1 year ago)
- Last Synced: 2025-04-16T21:23:15.646Z (about 1 year ago)
- Language: R
- Size: 1.2 MB
- Stars: 36
- Watchers: 1
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
# geosphere
[](https://cran.r-project.org/package=geosphere)
[](http://www.r-pkg.org/pkg/geosphere)
`geosphere` is an *R* package for spherical trigonmetry. That is compute distance, direction, area, and related quantities with longitude / latitude data. There are tutorials at [rspatial.org](https://rspatial.org/raster/sphere/index.html).
## Installation
`geosphere` is available from CRAN, so you can use `install.packages("geosphere")` to get the current *released version*.
The 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:
```
install.packages('geosphere', repos='https://rspatial.r-universe.dev')
```
### From source-code
In R, you can install the package like this.
```
remotes::install_github("rspatial/geosphere")
```
On Windows, you need to first install [Rtools](https://cran.r-project.org/bin/windows/Rtools/) to get a C++ compiler that R can use.