Skip to content

Commit

Permalink
win build checks, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsumner committed Sep 2, 2016
1 parent d78f109 commit b856803
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 15 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
^\.travis\.yml$
^appveyor\.yml$
^codecov\.yml$
^cran-comments\.md$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Title: Spatial Extent as Polygons with Projection
Version: 0.1.0
Authors@R: person("Michael D.","Sumner", role = c("aut", "cre"), email =
"mdsumner@gmail.com")
Description: Functions to roduce a fully fledged 'Spatial' object extent as a
Description: Functions to produce a fully fledged 'Spatial' object extent as a
'SpatialPolygonsDataFrame'.
License: GPL-3
Encoding: UTF-8
Expand Down
Binary file added README-unnamed-chunk-3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 13 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ will be carried through to the output.

There is also a method to put an extent and a crs together.

## Installation

Install 'spex' from CRAN.

```{r,eval=FALSE}
install.packages("spex")
```

## Examples

```{r}
Expand All @@ -35,13 +43,15 @@ library(raster)
data(lux)
(exlux <- spex(lux))
plot(lux)
plot(exlux, add = TRUE)
title(projection(exlux), cex.main = 0.7)
## put an extent and a CRS together
spex(extent(0, 1, 0, 1), crs = "+proj=laea +ellps=WGS84")
```

## TODO

* 'byid' for multi-objects
* by-group for multi objects
* raster edge extent with pixel corner vertices
* max segment length densification, in crs or by great-circle

Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.
34 changes: 23 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ Create a fully-fledged SpatialPolygonsDataFrame *extent* from any object underst

There is also a method to put an extent and a crs together.

Installation
------------

Install 'spex' from CRAN.

``` r
install.packages("spex")
```

Examples
--------

``` r
library(spex)
#> No methods found in "raster" for requests: as
library(raster)
#> Loading required package: sp
data(lux)
Expand All @@ -30,20 +38,24 @@ data(lux)
#> min values : 1
#> max values : 1

plot(lux)
plot(exlux, add = TRUE)
title(projection(exlux), cex.main = 0.7)
```

![](README-unnamed-chunk-2-1.png)

``` r
## put an extent and a CRS together
spex(extent(0, 1, 0, 1), crs = "+proj=laea +ellps=WGS84")
#> class : SpatialPolygons
#> class : SpatialPolygonsDataFrame
#> features : 1
#> extent : 0, 1, 0, 1 (xmin, xmax, ymin, ymax)
#> coord. ref. : +proj=laea +ellps=WGS84
#> coord. ref. : +proj=laea +ellps=WGS84
#> variables : 1
#> names : p
#> min values : 1
#> max values : 1
```

TODO
----

- 'byid' for multi-objects
- by-group for multi objects
- raster edge extent with pixel corner vertices
- max segment length densification, in crs or by great-circle

Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.
17 changes: 17 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Test environments
* local OS X install, R 3.3.1
* ubuntu 12.04 (on travis-ci), R 3.3.1
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 1 note

* This is a new release.

* CRAN address in readme.md is pre-emptive

## Reverse dependencies

This is a new release, so there are no reverse dependencies.

0 comments on commit b856803

Please sign in to comment.