Running 'testthat.R' [8s/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 ================================================================
  -- Error (tests-dataset_files.R:10: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:10:2
   2.   \-yaml::yaml.load(string, error.label = error.label, ...)
  -- Error (tests-get_dataframe-dataframe-basketball.R:6: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:6: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:20: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:20: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:33: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:33: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:21: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:21: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:56: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:56: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:77: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:77: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:98: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:98: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:117: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:117: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:135: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:135:2
   2.   \-yaml::read_yaml(system.file(path, package = "dataverse"))
   3.     \-yaml::yaml.load(string, error.label = error.label, ...)
  
  [ FAIL 10 | WARN 20 | SKIP 0 | PASS 68 ]
  Error: Test failures
  Execution halted