Browse Source

fixed CRAN checks

master
boB Rudis 6 years ago
parent
commit
6cb427f0d4
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 8
      .Rbuildignore
  2. 5
      DESCRIPTION
  3. 2
      NAMESPACE
  4. 2
      NEWS.md
  5. 1
      R/asam-package.r
  6. 3
      R/geo.r
  7. 3
      R/refresh.r
  8. 2
      man/asam_refresh.Rd
  9. 2
      man/asam_subregions.Rd

8
.Rbuildignore

@ -1,8 +1,8 @@
^.*\.Rproj$
^\.Rproj\.user$
^README\.Rmd$
^README-.*\.png$
^\.travis\.yml$
^CONDUCT\.md$
^README\.md$
^asam\.png$
^README.*$
^NEWS.*$
^.*.png$
^sub.*json$

5
DESCRIPTION

@ -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

2
NAMESPACE

@ -4,3 +4,5 @@ export(asam_refresh)
export(asam_subregions)
import(rgdal)
import(sf)
importFrom(utils,download.file)
importFrom(utils,unzip)

2
NEWS.md

@ -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

1
R/asam-package.r

@ -16,4 +16,5 @@
#' @docType package
#' @author Bob Rudis (bob@@rud.is)
#' @import sf rgdal
#' @importFrom utils download.file unzip
NULL

3
R/geo.r

@ -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) {

3
R/refresh.r

@ -11,8 +11,9 @@
#' the retrieval.
#' @export
#' @rdname asam_refresh
#' @examples
#' @examples \dontrun{
#' asam_refresh()
#' }
asam_refresh <- function() {
tryCatch({

2
man/asam_refresh.Rd

@ -20,5 +20,7 @@ asam_refresh()
(or previously updated).
}
\examples{
\dontrun{
asam_refresh()
}
}

2
man/asam_subregions.Rd

@ -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))
}
}

Loading…
Cancel
Save