Skip to content

Commit 53ec0d8

Browse files
committed
update docs
1 parent cb93070 commit 53ec0d8

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

R/download.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#' file to avoid overloading the OSM providers. The first step is the
99
#' definition of the file's path associated to the input `file_url`. The path
1010
#' is created by pasting together the `download_directory`, the name of chosen
11-
#' provider (which may be inferred from the URL) and the `basename()` of the
11+
#' provider (which may be inferred from the URL) and the `basename` of the
1212
#' URL. For example, if `file_url` is equal to
1313
#' `"https://download.geofabrik.de/europe/italy-latest.osm.pbf"`, and
1414
#' `download_directory = "/tmp"`, then the path is built as

R/utils.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ my_st_read <- function(dsn, layer, quiet, ...) {
7979

8080
#' Return the download directory used by the package
8181
#'
82-
#' By default, the download directory is equal to `tempdir()`. You can set a
83-
#' persistent download directory by adding the following command to your
84-
#' `.Renviron` file (e.g. with `edit_r_environ` function in `usethis` package):
85-
#' `OSMEXT_DOWNLOAD_DIRECTORY=/path/to/osm/data`.
82+
#' By default, the download directory is equal to `tools::R_user_dir("osmextract", "data")`.
83+
#' You can set a different persistent or temporary download directory by adding
84+
#' the following command to your `.Renviron` file (e.g. with `edit_r_environ`
85+
#' function in `usethis` package): `OSMEXT_DOWNLOAD_DIRECTORY=/path/where/to/save/osm/data`.
8686
#'
8787
#' @return A character vector representing the path for the download directory
8888
#' used by the package.

man/oe_download.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/oe_download_directory.Rd

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)