Skip to content

Commit

Permalink
correct dontrun examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rCarto committed May 10, 2019
1 parent 70aebc9 commit cd43cc5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
9 changes: 4 additions & 5 deletions R/mcStewart.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
#' typefct = "exponential", span = 100000,
#' beta = 3, mask = nuts3.spdf)
#' )
#'
#' t2 <- system.time(
#' s2 <- mcStewart(knownpts = nuts3.spdf, resolution = 40000,
#' varname = "pop2008",
Expand All @@ -56,10 +55,10 @@
#' identical(s1, s2)
#' cat("Elapsed time\n", "stewart:", t1[3], "\n mcStewart:",t2[3])
#'
#'
#' iso <- isopoly(x = s2, breaks = c(0,1000000,2000000, 5000000,
#' 10000000, 20000000, 200004342),
#' mask = nuts3.spdf)
#' iso <- isopoly(x = s2,
#' breaks = c(0,1000000,2000000, 5000000, 10000000, 20000000,
#' 200004342),
#' mask = nuts3.spdf, returnclass = "sf")
#' # cartography
#' opar <- par(mar = c(0,0,1.2,0))
#' bks <- sort(unique(c(iso$min, iso$max)))
Expand Down
1 change: 1 addition & 0 deletions R/rasterToContourPoly.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#' bks <- sort(unique(c(contourpoly$min, contourpoly$max)))
#' # Display the map
#' library(cartography)
#' library(sp)
#' opar <- par(mar = c(0,0,1.2,0))
#' choroLayer(spdf = contourpoly,
#' df = contourpoly@data,
Expand Down
9 changes: 4 additions & 5 deletions man/mcStewart.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions man/rasterToContourPoly.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd43cc5

Please sign in to comment.