Skip to content

Build fails on r-universe due to examples/tests #494

@PietrH

Description

@PietrH

https://inbo.r-universe.dev/etn

Example of build failure:

Running examples in 'etn-Ex.R' failed
The error most likely occurred in:

> ### Name: get_acoustic_deployments
> ### Title: Get acoustic deployment data
> ### Aliases: get_acoustic_deployments
> 
> ### ** Examples
> 
> # Get all acoustic deployments
> get_acoustic_deployments()
Error in `get_credentials()`:
! No credentials stored. Can't prompt for credentials since this is not
  running in interactive mode.
ℹ See `vignette(etn::authentication)` to configure credentials.
Backtrace:
    ▆
 1. └─etn::get_acoustic_deployments()
 2.   └─etn:::conduct_parent_to_helpers(protocol = select_protocol())
 3.     ├─base::do.call(...)
 4.     └─etn (local) `<fn>`(function_identity = "get_acoustic_deployments", payload = `<named list>`)
 5.       └─etn:::get_credentials()
 6.         └─cli::cli_abort(...)
 7.           └─rlang::abort(...)
Execution halted
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
  Running 'testthat.R' [15s]
 [15s] ERROR
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
    2. │ └─base::force(code)
    3. ├─vcr::use_cassette(...) at test-write_dwc.R:75:5
    4. │ └─base::withCallingHandlers(...)
    5. └─etn::write_dwc(animal_project_code = "2014_demer", directory = NULL) at test-write_dwc.R:77:7
    6.   └─etn:::conduct_parent_to_helpers(...)
    7.     ├─base::do.call(...)
    8.     └─etn (local) `<fn>`(...)
    9.       └─etn:::get_credentials()
   10.         └─cli::cli_abort(...)
   11.           └─rlang::abort(...)
  
  [ FAIL 35 | WARN 0 | SKIP 59 | PASS 59 ]
  Error:
  ! Test failures.
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ... SKIPPED
* checking re-building of vignette outputs ... SKIPPED
* DONE

Status: 2 ERRORs
See
  'D:/a/inbo/inbo/etn.Rcheck/00check.log'
for details.

Error: Check: examples, Result: ERROR
  Running examples in 'etn-Ex.R' failed
  The error most likely occurred in:
  
  > ### Name: get_acoustic_deployments
  > ### Title: Get acoustic deployment data
  > ### Aliases: get_acoustic_deployments
  > 
  > ### ** Examples
  > 
  > # Get all acoustic deployments
  > get_acoustic_deployments()
  Error in `get_credentials()`:
  ! No credentials stored. Can't prompt for credentials since this is not
    running in interactive mode.
  ℹ See `vignette(etn::authentication)` to configure credentials.
  Backtrace:
      ▆
   1. └─etn::get_acoustic_deployments()
   2.   └─etn:::conduct_parent_to_helpers(protocol = select_protocol())
   3.     ├─base::do.call(...)
   4.     └─etn (local) `<fn>`(function_identity = "get_acoustic_deployments", payload = `<named list>`)
   5.       └─etn:::get_credentials()
   6.         └─cli::cli_abort(...)
   7.           └─rlang::abort(...)
  Execution halted

Check: tests, Result: ERROR
    Running 'testthat.R' [15s]
  Running the tests in 'tests/testthat.R' failed.
  Last 13 lines of output:
      2. │ └─base::force(code)
      3. ├─vcr::use_cassette(...) at test-write_dwc.R:75:5
      4. │ └─base::withCallingHandlers(...)
      5. └─etn::write_dwc(animal_project_code = "2014_demer", directory = NULL) at test-write_dwc.R:77:7
      6.   └─etn:::conduct_parent_to_helpers(...)
      7.     ├─base::do.call(...)
      8.     └─etn (local) `<fn>`(...)
      9.       └─etn:::get_credentials()
     10.         └─cli::cli_abort(...)
     11.           └─rlang::abort(...)
    
    [ FAIL 35 | WARN 0 | SKIP 59 | PASS 59 ]
    Error:
    ! Test failures.
    Execution halted
Run SOURCEPKG="etn_3.0.0.tar.gz"
Built binary package: etn_3.0.0.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions