|
62 | 62 | #' * `loc` An `sf` object that describes site's location. |
63 | 63 | #' * `description` |
64 | 64 | #' * `collunits` limited information on collunits |
65 | | -#' @examples |
66 | | -#' \donttest{ |
| 65 | +#' @examples \dontrun{ |
67 | 66 | #' ## Find sites with a min altitude of 12m and a max altitude of 25m |
68 | | -#' tryCatch({ |
69 | | -#' sites_12to25 <- get_sites(altmin=12, altmax=25) |
70 | | -#' }, error = function(e) { |
71 | | -#' message("Neotoma server not responding. Try again later.") |
72 | | -#' }) |
73 | | -#' ## Return all sites, using a minimum altitude of 2500m (returns >500 sites): |
74 | | -#' tryCatch({ |
75 | | -#' sites_2500 <- get_sites(altmin=2500, all_data = TRUE) |
76 | | -#' }, error = function(e) { |
77 | | -#' message("Neotoma server not responding. Try again later.") |
78 | | -#' }) |
79 | | -#' ## To find sites in Brazil |
| 67 | +#' sites_12to25 <- get_sites(altmin=12, altmax=25) |
| 68 | +#' sites_2500 <- get_sites(altmin=2500, all_data = TRUE) |
| 69 | +#' ## To find sites in Brazil |
80 | 70 | #' brazil <- '{"type": "Polygon", |
81 | 71 | #' "coordinates": [[ |
82 | 72 | #' [-73.125, -9.102096738726443], |
83 | 73 | #' [-56.953125,-33.137551192346145], |
84 | 74 | #' [-36.5625,-7.710991655433217], |
85 | 75 | #' [-68.203125,13.923403897723347], |
86 | 76 | #' [-73.125,-9.102096738726443]]]}' |
87 | | -#' tryCatch({ |
88 | 77 | #' brazil_sites <- get_sites(loc = brazil[1]) |
89 | | -#' # Finding all sites with Liliaceae pollen in 1000 year bins: |
90 | | -#' lilysites <- c() |
91 | | -#' for (i in seq(0, 10000, by = 1000)) { |
92 | | -#' lily <- get_sites(taxa=c("Liliaceae"), |
93 | | -#' ageyoung = i - 500, |
94 | | -#' ageold = i + 500, |
95 | | -#' all_data = TRUE) |
96 | | -#' lilysites <- c(lilysites, length(lily)) |
97 | | -#' } |
98 | | -#' }, error = function(e) { |
99 | | -#' message("Neotoma server not responding. Try again later.") |
100 | | -#' }) |
101 | 78 | #' } |
102 | 79 | #' @md |
103 | 80 | #' @export |
|
0 commit comments