CRAN Package Check Results for Package dataverse

Last updated on 2021-02-16 06:51:37 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.3.0 3.67 46.43 50.10 ERROR
r-devel-linux-x86_64-debian-gcc 0.3.0 3.23 38.02 41.25 ERROR
r-devel-linux-x86_64-fedora-clang 0.3.0 66.79 ERROR
r-devel-linux-x86_64-fedora-gcc 0.3.0 57.04 ERROR
r-devel-windows-ix86+x86_64 0.3.0 8.00 108.00 116.00 ERROR
r-patched-linux-x86_64 0.3.0 3.76 47.77 51.53 ERROR
r-patched-solaris-x86 0.3.0 72.10 ERROR
r-release-linux-x86_64 0.3.0 4.30 48.11 52.41 ERROR
r-release-macos-x86_64 0.3.0 ERROR
r-release-windows-ix86+x86_64 0.3.0 10.00 113.00 123.00 ERROR
r-oldrel-macos-x86_64 0.3.0 ERROR
r-oldrel-windows-ix86+x86_64 0.3.0 5.00 84.00 89.00 ERROR

Check Details

Version: 0.3.0
Check: tests
Result: ERROR
     Running 'testthat.R' [8s/48s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     == Warnings ====================================================================
     -- Warning (tests-dataset_files.R:8:3): download tab from DOI and filename -----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. yaml::read_yaml(...) tests-dataset_files.R:8:2
     3. base::readLines(file)
     -- Warning (tests-dataset_files.R:8:3): download tab from DOI and filename -----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. yaml::read_yaml(...) tests-dataset_files.R:8:2
     3. base::readLines(file)
     -- Warning (tests-get_dataframe-dataframe-basketball.R:5:3): roster-by-name ----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:5:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-dataframe-basketball.R:5:3): roster-by-name ----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:5:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-dataframe-basketball.R:18:3): roster-by-doi ----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:18:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-dataframe-basketball.R:18:3): roster-by-doi ----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:18:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-dataframe-basketball.R:30:3): roster-by-id -----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:30:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-dataframe-basketball.R:30:3): roster-by-id -----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:30:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:20:3): roster-by-name ----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:20:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:20:3): roster-by-name ----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:20:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:54:3): roster-by-doi -----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:54:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:54:3): roster-by-doi -----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:54:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:74:3): roster-by-id ------
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:74:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:74:3): roster-by-id ------
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:74:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:94:3): image-by-name -----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:94:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:94:3): image-by-name -----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:94:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:112:3): image-by-doi -----
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:112:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:112:3): image-by-doi -----
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:112:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:129:3): image-by-id ------
     invalid input found on input connection '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:129:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
     -- Warning (tests-get_dataframe-original-basketball.R:129:3): image-by-id ------
     incomplete final line found on '/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml'
     Backtrace:
     1. dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:129:2
     2. yaml::read_yaml(system.file(path, package = "dataverse"))
     4. base::readLines(file)
    
     == Failed tests ================================================================
     -- Error (tests-dataset_files.R:8:3): download tab from DOI and filename -------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-yaml::read_yaml(...) tests-dataset_files.R:8:2
     2. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' --
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     -- Error (tests-get_dataframe-dataframe-basketball.R:5:3): roster-by-name ------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:5:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-dataframe-basketball.R:18:3): roster-by-doi ------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:18:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-dataframe-basketball.R:30:3): roster-by-id -------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-dataframe-basketball.R:30:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-original-basketball.R:20:3): roster-by-name ------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:20:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-original-basketball.R:54:3): roster-by-doi -------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:54:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-original-basketball.R:74:3): roster-by-id --------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:74:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-original-basketball.R:94:3): image-by-name -------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:94:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-original-basketball.R:112:3): image-by-doi -------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:112:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Error (tests-get_dataframe-original-basketball.R:129:3): image-by-id --------
     Error: (/home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/dataverse/dataset-basketball/expected-metadata.yml) Scanner error: while scanning a quoted scalar at line 27, column 14 found unexpected end of stream at line 30, column 79
    
     Backtrace:
     x
     1. \-dataverse:::retrieve_info_dataset("dataset-basketball/expected-metadata.yml") tests-get_dataframe-original-basketball.R:129:2
     2. \-yaml::read_yaml(system.file(path, package = "dataverse"))
     3. \-yaml::yaml.load(string, error.label = error.label, ...)
     -- Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ------
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     -- Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ------
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     -- Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ------
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ------
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ------
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     -- Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ------
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ------
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ------
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     -- Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ------
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     -- Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ------
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ------
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ------
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ----
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 24 | WARN 20 | SKIP 0 | PASS 48 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [8s/60s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ────
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ────
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ────
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     ── Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' ──
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     ── Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ──────
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     ── Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ──────
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     ── Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ──────
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ──────
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ──────
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     ── Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ──────
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ──────
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ──────
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     ── Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ──────
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     ── Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ──────
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ──────
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ──────
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ────
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [6s/40s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ────
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ────
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ────
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     ── Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' ──
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     ── Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ──────
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     ── Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ──────
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     ── Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ──────
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ──────
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ──────
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     ── Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ──────
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ──────
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ──────
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     ── Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ──────
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     ── Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ──────
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ──────
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ──────
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ────
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [6s/42s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ────
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ────
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ────
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     ── Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' ──
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     ── Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ──────
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     ── Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ──────
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     ── Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ──────
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ──────
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ──────
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     ── Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ──────
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ──────
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ──────
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     ── Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ──────
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     ── Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ──────
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ──────
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ──────
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ────
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.3.0
Check: tests
Result: ERROR
     Running 'testthat.R' [44s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     == Failed tests ================================================================
     -- Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ----
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ----
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ----
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     -- Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' --
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     -- Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ------
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     -- Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ------
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     -- Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ------
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ------
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ------
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     -- Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ------
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ------
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ------
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     -- Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ------
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     -- Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ------
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ------
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ------
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ----
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-devel-windows-ix86+x86_64

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [11s/64s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ────
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ────
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ────
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     ── Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' ──
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     ── Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ──────
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     ── Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ──────
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     ── Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ──────
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ──────
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ──────
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     ── Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ──────
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ──────
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ──────
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     ── Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ──────
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     ── Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ──────
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ──────
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ──────
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ────
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-linux-x86_64

Version: 0.3.0
Check: examples
Result: ERROR
    Running examples in ‘dataverse-Ex.R’ failed
    The error most likely occurred in:
    
    > ### Name: get_dataframe_by_name
    > ### Title: Download dataverse file as a dataframe
    > ### Aliases: get_dataframe_by_name get_dataframe_by_id get_dataframe_by_doi
    >
    > ### ** Examples
    >
    > # Retrieve data.frame from dataverse DOI and file name
    > df_tab <-
    + get_dataframe_by_name(
    + filename = "roster-bulls-1996.tab",
    + dataset = "doi:10.70122/FK2/HXJVJU",
    + server = "demo.dataverse.org"
    + )
    Error in value[[3L]](cond) :
     Could not retrieve Dataset ID from persistent identifier!
    Calls: get_dataframe_by_name ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
    Execution halted
Flavors: r-patched-solaris-x86, r-release-macos-x86_64, r-oldrel-macos-x86_64

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [5s/30s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Error (tests-dataset_files.R:5:3): download tab from DOI and filename ───────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse("dataverse-client-r") tests-dataset_files.R:5:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-dataset_metadata.R:5:3): download tab from DOI and filename ────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse("dataverse-client-r") tests-dataset_metadata.R:5:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-dataverse_contents.R:6:3): dataverse root ──────────────────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse(dataverse = ":root") tests-dataverse_contents.R:6:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-dataverse_contents.R:27:3): dataverse for 'dataverse-client-r' ──
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse(dataverse = "dataverse-client-r") tests-dataverse_contents.R:27:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataframe-dataframe-basketball.R:8:3): roster-by-name ──────
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_name(...) tests-get_dataframe-dataframe-basketball.R:8:2
     2. └─dataverse:::get_fileid.character(...)
     3. └─dataverse::dataset_files(...)
     4. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     5. └─dataverse:::dataset_id.character(...)
     6. └─base::tryCatch(...)
     7. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     8. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     9. └─value[[3L]](cond)
     ── Error (tests-get_dataframe-dataframe-basketball.R:21:3): roster-by-doi ──────
     Error: read-in function was left NULL, but the target file is not ingested or you asked for the original version. Please supply a .f argument.
    
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_doi(...) tests-get_dataframe-dataframe-basketball.R:21:2
     2. └─dataverse::get_dataframe_by_id(...)
     ── Error (tests-get_dataframe-dataframe-basketball.R:33:3): roster-by-id ───────
     Error: read-in function was left NULL, but the target file is not ingested or you asked for the original version. Please supply a .f argument.
    
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_id(...) tests-get_dataframe-dataframe-basketball.R:33:2
     ── Error (tests-get_dataframe-original-basketball.R:23:3): roster-by-name ──────
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_name(...) tests-get_dataframe-original-basketball.R:23:2
     2. └─dataverse:::get_fileid.character(...)
     3. └─dataverse::dataset_files(...)
     4. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     5. └─dataverse:::dataset_id.character(...)
     6. └─base::tryCatch(...)
     7. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     8. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     9. └─value[[3L]](cond)
     ── Error (tests-get_dataframe-original-basketball.R:57:3): roster-by-doi ───────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_doi(...) tests-get_dataframe-original-basketball.R:57:2
     2. └─dataverse::get_dataframe_by_id(...)
     3. └─dataverse::get_file(file = fileid, original = original, ...)
     4. └─dataverse::get_file_by_id(...)
     5. └─httr::GET(...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataframe-original-basketball.R:77:3): roster-by-id ────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_id(...) tests-get_dataframe-original-basketball.R:77:2
     2. └─dataverse::get_file(file = fileid, original = original, ...)
     3. └─dataverse::get_file_by_id(...)
     4. └─httr::GET(...)
     5. └─httr:::request_perform(req, hu$handle$handle)
     6. ├─httr:::request_fetch(req$output, req$url, handle)
     7. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     8. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataframe-original-basketball.R:97:3): image-by-name ───────
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_name(...) tests-get_dataframe-original-basketball.R:97:2
     2. └─dataverse:::get_fileid.character(...)
     3. └─dataverse::dataset_files(...)
     4. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     5. └─dataverse:::dataset_id.character(...)
     6. └─base::tryCatch(...)
     7. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     8. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     9. └─value[[3L]](cond)
     ── Error (tests-get_dataframe-original-basketball.R:115:3): image-by-doi ───────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_doi(...) tests-get_dataframe-original-basketball.R:115:2
     2. └─dataverse::get_dataframe_by_id(...)
     3. └─dataverse::get_file(file = fileid, original = original, ...)
     4. └─dataverse::get_file_by_id(...)
     5. └─httr::GET(...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataframe-original-basketball.R:132:3): image-by-id ────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataframe_by_id(...) tests-get_dataframe-original-basketball.R:132:2
     2. └─dataverse::get_file(file = fileid, original = original, ...)
     3. └─dataverse::get_file_by_id(...)
     4. └─httr::GET(...)
     5. └─httr:::request_perform(req, hu$handle$handle)
     6. ├─httr:::request_fetch(req$output, req$url, handle)
     7. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     8. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataset.R:5:3): download tab from DOI and filename ─────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse("dataverse-client-r") tests-get_dataset.R:5:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataverse.R:7:3): dataverse root ───────────────────────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse(dataverse = expected$testing_name) tests-get_dataverse.R:7:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_dataverse.R:20:3): dataverse for 'dataverse-client-r' ──────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse(dataverse = expected$testing_name) tests-get_dataverse.R:20:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_file.R:7:3): download tab from DOI and filename ────────────
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_file(file = "roster-bulls-1996.tab", dataset = "doi:10.70122/FK2/HXJVJU") tests-get_file.R:7:2
     2. └─dataverse:::get_fileid.character(...)
     3. └─dataverse::dataset_files(...)
     4. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     5. └─dataverse:::dataset_id.character(...)
     6. └─base::tryCatch(...)
     7. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     8. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     9. └─value[[3L]](cond)
     ── Error (tests-get_file.R:16:3): download tab from file id ────────────────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_file(file = 1734005L) tests-get_file.R:16:2
     2. └─dataverse::get_file_by_id(...)
     3. └─httr::GET(...)
     4. └─httr:::request_perform(req, hu$handle$handle)
     5. ├─httr:::request_fetch(req$output, req$url, handle)
     6. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     7. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-get_file.R:25:3): download multiple files with file id - no folder ──
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_dataset("doi:10.70122/FK2/HXJVJU", server = "demo.dataverse.org") tests-get_file.R:25:2
     2. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     3. └─dataverse:::dataset_id.character(...)
     4. └─base::tryCatch(...)
     5. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     6. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     7. └─value[[3L]](cond)
     ── Error (tests-get_file.R:38:3): download multiple files with file id - with folders ──
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_dataset("doi:10.70122/FK2/HXJVJU", server = "demo.dataverse.org") tests-get_file.R:38:2
     2. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     3. └─dataverse:::dataset_id.character(...)
     4. └─base::tryCatch(...)
     5. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     6. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     7. └─value[[3L]](cond)
     ── Error (tests-get_file_metadata.R:7:3): get file metadata from DOI and filename ──
     Error: Could not retrieve Dataset ID from persistent identifier!
     Backtrace:
     █
     1. └─dataverse::get_file_metadata(...) tests-get_file_metadata.R:7:2
     2. ├─dataverse:::get_fileid(...)
     3. └─dataverse:::get_fileid.character(...)
     4. └─dataverse::dataset_files(...)
     5. ├─dataverse:::dataset_id(dataset, key = key, server = server, ...)
     6. └─dataverse:::dataset_id.character(...)
     7. └─base::tryCatch(...)
     8. └─base:::tryCatchList(expr, classes, parentenv, handlers)
     9. └─base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
     10. └─value[[3L]](cond)
     ── Error (tests-get_file_metadata.R:16:3): get file metadata from file id ──────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_file_metadata(file = 1734005) tests-get_file_metadata.R:16:2
     2. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     3. └─httr:::request_perform(req, hu$handle$handle)
     4. ├─httr:::request_fetch(req$output, req$url, handle)
     5. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     6. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-list_datasets.R:24:3): dataverse root ──────────────────────────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse(":root") tests-list_datasets.R:24:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
     ── Error (tests-list_datasets.R:57:3): dataverse for 'dataverse-client-r' ──────
     Error: SSL certificate problem: certificate has expired
     Backtrace:
     █
     1. └─dataverse::get_dataverse("dataverse-client-r") tests-list_datasets.R:57:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 10 ]
     Error: Test failures
     Execution halted
Flavor: r-patched-solaris-x86

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [11s/63s]
    Running the tests in ‘tests/testthat.R’ failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     ══ Failed tests ════════════════════════════════════════════════════════════════
     ── Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ────
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ────
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ────
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     ── Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' ──
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     ── Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ──────
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     ── Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ──────
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     ── Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ──────
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ──────
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     ── Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ──────
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     ── Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ──────
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ──────
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     ── Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ──────
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     ── Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ──────
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     ── Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ──────
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ──────
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     ── Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ──────
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     ── Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ────
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-release-linux-x86_64

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [2s/24s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     Backtrace:
     █
     1. └─dataverse::get_dataverse("dataverse-client-r") tests-list_datasets.R:57:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 10 ]
     Error: Test failures
     Execution halted
Flavor: r-release-macos-x86_64

Version: 0.3.0
Check: tests
Result: ERROR
     Running 'testthat.R' [53s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     == Failed tests ================================================================
     -- Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ----
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ----
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ----
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     -- Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' --
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     -- Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ------
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     -- Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ------
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     -- Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ------
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ------
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ------
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     -- Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ------
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ------
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ------
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     -- Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ------
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     -- Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ------
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ------
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ------
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ----
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 2 string mismatches
     Component "datasets": Component "id": 2 string mismatches
    
     [ FAIL 17 | WARN 0 | SKIP 0 | PASS 82 ]
     Error: Test failures
     Execution halted
Flavor: r-release-windows-ix86+x86_64

Version: 0.3.0
Check: tests
Result: ERROR
     Running ‘testthat.R’ [3s/26s]
    Running the tests in ‘tests/testthat.R’ failed.
    Last 13 lines of output:
     Backtrace:
     █
     1. └─dataverse::get_dataverse("dataverse-client-r") tests-list_datasets.R:57:2
     2. ├─dataverse:::dataverse_id(...)
     3. └─dataverse:::dataverse_id.character(...)
     4. └─dataverse::get_dataverse(x, ..., check = FALSE)
     5. └─httr::GET(u, httr::add_headers(`X-Dataverse-key` = key), ...)
     6. └─httr:::request_perform(req, hu$handle$handle)
     7. ├─httr:::request_fetch(req$output, req$url, handle)
     8. └─httr:::request_fetch.write_memory(req$output, req$url, handle)
     9. └─curl::curl_fetch_memory(url, handle = handle)
    
     [ FAIL 24 | WARN 0 | SKIP 0 | PASS 10 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-macos-x86_64

Version: 0.3.0
Check: tests
Result: ERROR
     Running 'testthat.R' [40s]
    Running the tests in 'tests/testthat.R' failed.
    Complete output:
     > library("testthat")
     > library("dataverse")
     >
     > if (!requireNamespace("yaml", quietly = TRUE)) {
     + warning("The 'yaml' package must be present to test the dataverse package.")
     + } else if (!requireNamespace("checkmate", quietly = TRUE)) {
     + warning("The 'checkmate' package must be present to test the dataverse package.")
     + } else {
     + server <- Sys.getenv("DATAVERSE_SERVER")
     + key <- Sys.getenv("DATAVERSE_KEY")
     +
     + if (server == "" | key == "") {
     + config <- yaml::read_yaml(system.file("constants.yml", package="dataverse"))
     + # config <- yaml::read_yaml("inst/constants.yml")
     +
     + Sys.setenv("DATAVERSE_SERVER" = config$server)
     + Sys.setenv("DATAVERSE_KEY" = config$api_token)
     +
     + if (as.Date(config$api_token_expiration) < Sys.Date()) {
     + stop(
     + "The API token expired on `",
     + config$api_token_expiration,
     + "`, so the tests would probably fail. ",
     + "Please regenerate a new token and update `inst/constants.yml`"
     + )
     + }
     + rm(config)
     + }
     + rm(server, key)
     +
     + message("Using Dataverse server `", Sys.getenv("DATAVERSE_SERVER"), "`.")
     +
     + test_check("dataverse")
     + }
     Using Dataverse server `demo.dataverse.org`.
     == Failed tests ================================================================
     -- Failure (tests-dataset_files.R:19:3): download tab from DOI and filename ----
     purrr::map_chr(actual, "label") not equal to ds_expected$label.
     Types not compatible: character is not integer
     -- Failure (tests-dataset_files.R:21:3): download tab from DOI and filename ----
     purrr::map_int(actual, "version") not equal to ds_expected$version.
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-dataset_files.R:22:3): download tab from DOI and filename ----
     purrr::map_int(actual, "datasetVersionId") not equal to ds_expected$datasetVersionId.
     2/2 mismatches (average diff: 4)
     [1] 182162 - 182158 == 4
     [2] 182162 - 182158 == 4
     -- Failure (tests-dataverse_contents.R:29:3): dataverse for 'dataverse-client-r' --
     actual[[1]] not equal to `expected`.
     Component "id": Mean relative difference: 6.343659e-06
     Component "identifier": 1 string mismatch
     Component "persistentUrl": 1 string mismatch
     Component "storageIdentifier": 1 string mismatch
     -- Failure (tests-get_dataset.R:12:3): download tab from DOI and filename ------
     actual$id not equal to 182158L.
     1/1 mismatches
     [1] 182162 - 182158 == 4
     -- Failure (tests-get_dataset.R:13:3): download tab from DOI and filename ------
     actual$datasetId not equal to 1734004L.
     1/1 mismatches
     [1] 1734015 - 1734004 == 11
     -- Failure (tests-get_dataset.R:14:3): download tab from DOI and filename ------
     actual$datasetPersistentId not equal to "doi:10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE"
     y[1]: "doi:10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:15:3): download tab from DOI and filename ------
     actual$storageIdentifier not equal to "file://10.70122/FK2/HXJVJU".
     1/1 mismatches
     x[1]: "file://10.70122/FK2/PPIAXE"
     y[1]: "file://10.70122/FK2/HXJVJU"
     -- Failure (tests-get_dataset.R:17:3): download tab from DOI and filename ------
     actual$UNF not equal to "UNF:6:hrleySyT6vzwEih3+nhp8A==".
     1/1 mismatches
     x[1]: "UNF:6:KE0atkIJb5nmh7be7Gghdw=="
     y[1]: "UNF:6:hrleySyT6vzwEih3+nhp8A=="
     -- Failure (tests-get_dataset.R:23:3): download tab from DOI and filename ------
     files$label not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-get_dataset.R:25:3): download tab from DOI and filename ------
     files$version not equal to c(3L, 2L).
     2/2 mismatches (average diff: 1.5)
     [1] 1 - 3 == -2
     [2] 3 - 2 == 1
     -- Failure (tests-get_dataset.R:27:3): download tab from DOI and filename ------
     files$directoryLabel not equal to c(NA, "resources").
     2/2 mismatches
     x[1]: "data-rds"
     y[1]: NA
    
     x[2]: "data-dta"
     y[2]: "resources"
     -- Failure (tests-get_dataset.R:28:3): download tab from DOI and filename ------
     files$id not equal to c(1734005L, 1734006L).
     2/2 mismatches (average diff: 11)
     [1] 1734016 - 1734005 == 11
     [2] 1734017 - 1734006 == 11
     -- Failure (tests-get_dataset.R:29:3): download tab from DOI and filename ------
     files$persistentId not equal to c("doi:10.70122/FK2/HXJVJU/SA3Z2V", "doi:10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "doi:10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "doi:10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "doi:10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "doi:10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:30:3): download tab from DOI and filename ------
     files$pidURL not equal to c("https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V", "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB").
     2/2 mismatches
     x[1]: "https://doi.org/10.70122/FK2/PPIAXE/SUCFNI"
     y[1]: "https://doi.org/10.70122/FK2/HXJVJU/SA3Z2V"
    
     x[2]: "https://doi.org/10.70122/FK2/PPIAXE/MHDB0O"
     y[2]: "https://doi.org/10.70122/FK2/HXJVJU/FHV8ZB"
     -- Failure (tests-get_dataset.R:31:3): download tab from DOI and filename ------
     files$filename not equal to c("roster-bulls-1996.tab", "vector-basketball.svg").
     2/2 mismatches
     x[1]: "nlsw88_rds-export.rds"
     y[1]: "roster-bulls-1996.tab"
    
     x[2]: "nlsw88.tab"
     y[2]: "vector-basketball.svg"
     -- Failure (tests-list_datasets.R:27:3): dataverse root ------------------------
     `actual` not equal to `expected`.
     Component "datasets": Attributes: < Names: 1 string mismatch >
     Component "datasets": Attributes: < Length mismatch: comparison on first 2 components >
     Component "datasets": Attributes: < Component 2: Modes: numeric, character >
     Component "datasets": Attributes: < Component 2: target is numeric, current is character >
     -- Failure (tests-list_datasets.R:60:3): dataverse for 'dataverse-client-r' ----
     `actual` not equal to `expected`.
     Component "datasets": Component "title": 'current' is not a factor
     Component "datasets": Component "id": 'current' is not a factor
    
     [ FAIL 18 | WARN 0 | SKIP 0 | PASS 81 ]
     Error: Test failures
     Execution halted
Flavor: r-oldrel-windows-ix86+x86_64