R Under development (unstable) (2024-05-30 r86651 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(zen4R) > > > #test environment > zenodo_url <- "https://sandbox.zenodo.org/api" > zenodo_token <- Sys.getenv("ZENODO_SANDBOX_TOKEN") > zenodo_logger <- "DEBUG" > ZENODO <- try(ZenodoManager$new(url = zenodo_url, token = zenodo_token, logger = zenodo_logger)) ✔ Successfully connected to Zenodo as anonymous user [zen4R][INFO] ZenodoManager - Successfully connected to Zenodo as anonymous user > > if(is(ZENODO, "ZenodoManager")){ + if(!ZENODO$anonymous){ + cat(sprintf("Zenodo sandbox '%s' configured with user token. Running integration tests...\n", zenodo_url)) + test_check("zen4R") + }else{ + cat("Zenodo sandbox '%s' not configured with user token. Skipping integration tests...\n") + } + }else{ + cat("Zenodo sandbox '%s' not configured. Skipping integration tests...\n") + } Zenodo sandbox '%s' not configured with user token. Skipping integration tests... > > proc.time() user system elapsed 2.39 0.50 2.82