Skip to content

Commit 8a69d94

Browse files
committed
update to latest DOI versions
1 parent 26b8ba5 commit 8a69d94

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

R/check_version.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
#' \donttest{
1616
#' # Most data URLs and identifiers work
1717
#' check_version("https://cn.dataone.org/cn/v2/resolve/urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570")
18-
#' check_version("doi:10.18739/A2ZF6M")
18+
#' check_version("doi:10.18739/A2J09W56F")
1919
#'
2020
#' # Specify a formatType (data, metadata, or resource)
21-
#' check_version("doi:10.18739/A2ZF6M", formatType = "metadata")
21+
#' check_version("doi:10.18739/A2J09W56F", formatType = "metadata")
2222
#'
2323
#' # Returns a warning if the identifier has been obsoleted
2424
#' check_version("doi:10.18739/A2HF7Z", formatType = "metadata")

R/download_d1_data.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
#'
2424
#' @examples
2525
#' \dontest{
26-
#' download_d1_data("urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570", path = file.path("."))
26+
#' download_d1_data("urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570", path = tempdir())
2727
#' download_d1_data(
2828
#' "https://cn.dataone.org/cn/v2/resolve/urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570",
29-
#' path = file.path(".")
29+
#' path = tempdir()
3030
#' )
3131
#' }
3232

R/download_d1_data_pkg.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#'
1717
#' @examples
1818
#' \donttest{
19-
#' download_d1_data_pkg("doi:10.18739/A2028W", ".")
20-
#' download_d1_data_pkg("https://doi.org/10.18739/A2028W", ".")
19+
#' download_d1_data_pkg("doi:10.18739/A2CJ87M3J", tempdir())
20+
#' download_d1_data_pkg("https://doi.org/10.18739/A2CJ87M3J, tempdir())
2121
#' }
2222

2323
download_d1_data_pkg <- function(meta_obj, path) {

0 commit comments

Comments
 (0)