From c8925df68d3be11a86acc54f7412ff3fa13f278a Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 9 Feb 2023 14:26:35 +0100 Subject: [PATCH] updated manual files --- man/osem_clear_cache.Rd | 3 ++- man/osem_measurements.Rd | 1 + man/osem_measurements_archive.Rd | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/man/osem_clear_cache.Rd b/man/osem_clear_cache.Rd index 83bb123..2f1a017 100644 --- a/man/osem_clear_cache.Rd +++ b/man/osem_clear_cache.Rd @@ -17,11 +17,12 @@ Boolean whether the deletion was successful Purge cached responses from the given cache directory } \examples{ -\donttest{ +\dontrun{ osem_boxes(cache = tempdir()) osem_clear_cache() cachedir = paste(getwd(), 'osemcache', sep = '/') + dir.create(file.path(cachedir), showWarnings = FALSE) osem_boxes(cache = cachedir) osem_clear_cache(cachedir) } diff --git a/man/osem_measurements.Rd b/man/osem_measurements.Rd index 04a1d26..fa958fd 100644 --- a/man/osem_measurements.Rd +++ b/man/osem_measurements.Rd @@ -115,6 +115,7 @@ a bounding box spanning the whole world. # construct a bounding box 12km around berlin using the sf package, # and get measurements from stations within that box library(sf) + library(units) bbox2 = st_point(c(13.4034, 52.5120)) \%>\% st_sfc(crs = 4326) \%>\% st_transform(3857) \%>\% # allow setting a buffer in meters diff --git a/man/osem_measurements_archive.Rd b/man/osem_measurements_archive.Rd index aa32e05..44827d9 100644 --- a/man/osem_measurements_archive.Rd +++ b/man/osem_measurements_archive.Rd @@ -36,7 +36,7 @@ A \code{tbl_df} containing observations of all selected sensors for each time st \description{ This function is significantly faster than \code{\link{osem_measurements}} for large time-frames, as daily CSV dumps for each sensor from -\href{http://archive.opensensemap.org}{archive.opensensemap.org} are used. +\href{https://archive.opensensemap.org}{archive.opensensemap.org} are used. Note that the latest data available is from the previous day. } \details{