Running ‘testthat.R’ [5s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(copernicusR)
  copernicusR loaded. To get started:
  1. Ensure Python 3.7+ is installed
  2. Run setup_copernicus() to configure
  3. Get free account at: https://data.marine.copernicus.eu/register
  Use copernicus_is_ready() to check configuration.
  > 
  > test_check("copernicusR")
  Saving _problems/test-download-38.R
  Saving _problems/test-download-102.R
  Saving _problems/test-opendataset-100.R
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 55 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • Integration tests require real Copernicus Marine connection (2):
    'test-download.R:110:3', 'test-opendataset.R:116:3'
  • Requires actual Python environment - integration test (1):
    'test-setup.R:83:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-download.R:32:3'): copernicus_download uses stored credentials ──
  <Rcpp::exception/C++Error/error/condition>
  Error: /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so - /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so: cannot enable executable stack as shared object requires: Invalid argument
  Backtrace:
       ▆
    1. ├─base::suppressMessages(...) at test-download.R:32:3
    2. │ └─base::withCallingHandlers(...)
    3. └─copernicusR::copernicus_download(...)
    4.   └─reticulate::r_to_py(as.list(variables))
    5.     └─reticulate:::ensure_python_initialized()
    6.       └─reticulate:::initialize_python()
    7.         └─base::tryCatch(...)
    8.           └─base (local) tryCatchList(expr, classes, parentenv, handlers)
    9.             └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   10.               └─value[[3L]](cond)
  ── Error ('test-download.R:102:3'): copernicus_test with mocked download ───────
  <Rcpp::exception/C++Error/error/condition>
  Error: /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so - /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so: cannot enable executable stack as shared object requires: Invalid argument
  Backtrace:
       ▆
    1. ├─base::suppressMessages(copernicus_test()) at test-download.R:102:3
    2. │ └─base::withCallingHandlers(...)
    3. └─copernicusR::copernicus_test()
    4.   └─copernicusR::copernicus_download(...)
    5.     └─reticulate::r_to_py(as.list(variables))
    6.       └─reticulate:::ensure_python_initialized()
    7.         └─reticulate:::initialize_python()
    8.           └─base::tryCatch(...)
    9.             └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.               └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.                 └─value[[3L]](cond)
  ── Error ('test-opendataset.R:100:3'): copernicus_test_open with mock ──────────
  <Rcpp::exception/C++Error/error/condition>
  Error: /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so - /home/hornik/tmp/scratch/check-CRAN-regular-hornik/cache/R/reticulate/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/libpython3.12.so: cannot enable executable stack as shared object requires: Invalid argument
  Backtrace:
       ▆
    1. ├─base::suppressMessages(copernicus_test_open()) at test-opendataset.R:100:3
    2. │ └─base::withCallingHandlers(...)
    3. └─copernicusR::copernicus_test_open()
    4.   └─copernicusR::copernicus_open_dataset(...)
    5.     └─reticulate::r_to_py(as.list(variables))
    6.       └─reticulate:::ensure_python_initialized()
    7.         └─reticulate:::initialize_python()
    8.           └─base::tryCatch(...)
    9.             └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   10.               └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   11.                 └─value[[3L]](cond)
  
  [ FAIL 3 | WARN 0 | SKIP 3 | PASS 55 ]
  Error:
  ! Test failures.
  Execution halted