No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
9 changed files with
20 additions and
8 deletions
-
.Rbuildignore
-
DESCRIPTION
-
NAMESPACE
-
NEWS.md
-
R/asam-package.r
-
R/geo.r
-
R/refresh.r
-
man/asam_refresh.Rd
-
man/asam_subregions.Rd
|
|
@ -1,8 +1,8 @@ |
|
|
|
^.*\.Rproj$ |
|
|
|
^\.Rproj\.user$ |
|
|
|
^README\.Rmd$ |
|
|
|
^README-.*\.png$ |
|
|
|
^\.travis\.yml$ |
|
|
|
^CONDUCT\.md$ |
|
|
|
^README\.md$ |
|
|
|
^asam\.png$ |
|
|
|
^README.*$ |
|
|
|
^NEWS.*$ |
|
|
|
^.*.png$ |
|
|
|
^sub.*json$ |
|
|
|
|
|
@ -19,8 +19,9 @@ Depends: R (>= 3.2.0) |
|
|
|
License: MIT + file LICENSE |
|
|
|
Suggests: |
|
|
|
testthat |
|
|
|
Import: |
|
|
|
Imports: |
|
|
|
sf, |
|
|
|
rgdal |
|
|
|
rgdal, |
|
|
|
utils |
|
|
|
Encoding: UTF-8 |
|
|
|
RoxygenNote: 6.0.1.9000 |
|
|
|
|
|
@ -4,3 +4,5 @@ export(asam_refresh) |
|
|
|
export(asam_subregions) |
|
|
|
import(rgdal) |
|
|
|
import(sf) |
|
|
|
importFrom(utils,download.file) |
|
|
|
importFrom(utils,unzip) |
|
|
|
|
|
@ -1,5 +1,7 @@ |
|
|
|
# asam 0.1.1 |
|
|
|
* updated data files |
|
|
|
* fixed most of the CRAN errors (it's not going to CRAN so I'm OK with leaving |
|
|
|
the non-ASCII bits in there.) |
|
|
|
|
|
|
|
# asam 0.1.0 |
|
|
|
* supports simple feature collectioons as well as Spatial objects |
|
|
|
|
|
@ -16,4 +16,5 @@ |
|
|
|
#' @docType package |
|
|
|
#' @author Bob Rudis (bob@@rud.is) |
|
|
|
#' @import sf rgdal |
|
|
|
#' @importFrom utils download.file unzip |
|
|
|
NULL |
|
|
|
|
|
@ -19,10 +19,11 @@ |
|
|
|
#' @param sp if `TRUE` then return a `Spatial` object otherwise return a simple feature collection |
|
|
|
#' @return \code{SpatialPolygonsDataFrame} |
|
|
|
#' @export |
|
|
|
#' @examples |
|
|
|
#' @examples \dontrun{ |
|
|
|
#' plot(asam_subregions()) |
|
|
|
# |
|
|
|
#' plot(asam_subregions(FALSE)) |
|
|
|
#' } |
|
|
|
asam_subregions <- function(sp = TRUE) { |
|
|
|
|
|
|
|
if (sp) { |
|
|
|
|
|
@ -11,8 +11,9 @@ |
|
|
|
#' the retrieval. |
|
|
|
#' @export |
|
|
|
#' @rdname asam_refresh |
|
|
|
#' @examples |
|
|
|
#' @examples \dontrun{ |
|
|
|
#' asam_refresh() |
|
|
|
#' } |
|
|
|
asam_refresh <- function() { |
|
|
|
|
|
|
|
tryCatch({ |
|
|
|
|
|
@ -20,5 +20,7 @@ asam_refresh() |
|
|
|
(or previously updated). |
|
|
|
} |
|
|
|
\examples{ |
|
|
|
\dontrun{ |
|
|
|
asam_refresh() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -30,6 +30,8 @@ indicates the geographic region while the first two digits of all five-digit |
|
|
|
chart numbers refer to the geographic subregion. |
|
|
|
} |
|
|
|
\examples{ |
|
|
|
\dontrun{ |
|
|
|
plot(asam_subregions()) |
|
|
|
plot(asam_subregions(FALSE)) |
|
|
|
} |
|
|
|
} |
|
|
|