Error in `.local(x, ...)`: get() error: Error in if (node@APIversion >= "v2") {: argument is of length zero

test_that("test Arctic Data Center data URL (fully up to date data file)", {
out <- download_d1_data(data_url = "https://cn.dataone.org/cn/v2/resolve/urn:uuid:a2834e3e-f453-4c2b-8343-99477662b570",
# expect_true(stringr::str_detect(folder_name, "^doi")) #starts with doi
test_that("test Arctic Data Center data URL (fully up to date data file) with one data table", {
expect_true(stringr::str_detect(folder_name, "^doi")) #starts with doi
test_that("test Arctic Data Center data URL (fully up to date data file) with multiple data tables", {
out <- download_d1_data(data_url = "https://cn.dataone.org/cn/v2/resolve/urn:uuid:a4f85031-0b91-4d92-ba0a-b02f216bba64",
test_that("Data without metadata downloads and returns summary metadata", {
#adding a test for a dataset that uses ISO metadata and is from the Alaska Ocean Observing System member node
test_that("test data URL with ISO metadata from AOOS member node and with multiple data tables", {
out <- expect_warning(download_d1_data(data_url = "https://cn.dataone.org/cn/v2/resolve/4139539e-94e7-49cc-9c7a-5f879e438b16",
#adding a test for a dataset that uses ISO metadata from Research Workspace member node
test_that("test data URL with ISO metadata from Research Workspace member node and with multiple data tables", {
out <- download_d1_data(data_url = "https://cn.dataone.org/cn/v2/resolve/f8e4b479-2c85-4cfd-ad69-4aa059b58a92",
test_that("test EDI data URL (fully up to date data file) with multiple data tables", {
out <- download_d1_data(data_url = "https://cn.dataone.org/cn/v2/resolve/https%3A%2F%2Fpasta.lternet.edu%2Fpackage%2Fdata%2Feml%2Fedi%2F746%2F1%2F2eac05447c1141bc8942284dfb32643c",
test_that("test EDI data URL (fully up to date data file, eml v2.2.0) with one data table", {
out <- download_d1_data(data_url = "https://cn.dataone.org/cn/v2/resolve/https%3A%2F%2Fpasta.lternet.edu%2Fpackage%2Fdata%2Feml%2Fedi%2F858%2F1%2F15ad768241d2eeed9f0ba159c2ab8fd5",