Running ‘testthat.R’ [61s/73s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(photosynthesis)
  Loading required package: ggplot2
  Loading required package: minpack.lm
  Loading required package: units
  udunits database from /usr/share/xml/udunits/udunits2.xml
  > 
  > test_check("photosynthesis")
  You may need to revise .vars argument by replacing `var_name1`, etc. with variable name in your_data:
  
  fit_photosynthesis(
    .data = your_data,
    .photo_fun = 'aq_response',
    .model = 'marshall_biscoe_1980',
    .method = 'ls',
    .vars = list(
      .A = var_name1,
      .Q = var_name1
    ),
    ...
  )
  You may need to revise .vars argument by replacing `var_name1`, etc. with variable name in your_data:
  
  fit_photosynthesis(
    .data = your_data,
    .photo_fun = 'aq_response',
    .model = 'marshall_biscoe_1980',
    .method = 'ls',
    .vars = list(
      .A = var_name1,
      .Q = var_name1
    ),
    ...
  )
  You may need to revise .vars argument by replacing `var_name1`, etc. with variable name in your_data:
  
  fit_photosynthesis(
    .data = your_data,
    .photo_fun = 'aq_response',
    .model = 'marshall_biscoe_1980',
    .method = 'ls',
    .vars = list(
      .A = var_name1,
      .Q = var_name2
    ),
    ...
  )
  
    |                                                                            
    |                                                                      |   0%
    |                                                                            
    |===================================                                   |  50%
    |                                                                            
    |======================================================================| 100%[ FAIL 6 | WARN 2 | SKIP 0 | PASS 320 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-fit_aq_response2.R:12:3'): 'fit_photosynthesis()' accepts data.frames and tibbles ──
  Expected `{ ... }` to run without any conditions.
  ℹ Actually got a <lifecycle_stage>:
    Condition:
    `flatten()` is deprecated as of rlang 1.1.0. ℹ Please use
    `purrr::list_flatten()` or `purrr::list_c()`.
  ── Failure ('test-fit_aq_response2.R:13:3'): 'fit_photosynthesis()' accepts data.frames and tibbles ──
  Expected `{ ... }` to run without any conditions.
  ℹ Actually got a <lifecycle_stage>:
    Condition:
    `flatten()` is deprecated as of rlang 1.1.0. ℹ Please use
    `purrr::list_flatten()` or `purrr::list_c()`.
  ── Failure ('test-fit_aq_response2.R:31:3'): .vars argument renames variables ──
  Expected `{ ... }` to run without any conditions.
  ℹ Actually got a <lifecycle_stage>:
    Condition:
    `flatten()` is deprecated as of rlang 1.1.0. ℹ Please use
    `purrr::list_flatten()` or `purrr::list_c()`.
  ── Failure ('test-fit_aq_response2.R:34:3'): .vars argument renames variables ──
  Expected `{ ... }` to run without any conditions.
  ℹ Actually got a <lifecycle_stage>:
    Condition:
    `flatten()` is deprecated as of rlang 1.1.0. ℹ Please use
    `purrr::list_flatten()` or `purrr::list_c()`.
  ── Failure ('test-fit_aq_response2.R:37:3'): .vars argument renames variables ──
  Expected `{ ... }` to run without any conditions.
  ℹ Actually got a <lifecycle_stage>:
    Condition:
    `flatten()` is deprecated as of rlang 1.1.0. ℹ Please use
    `purrr::list_flatten()` or `purrr::list_c()`.
  ── Failure ('test-fit_aq_response2.R:44:3'): .vars argument renames variables ──
  Expected `{ ... }` to run without any conditions.
  ℹ Actually got a <lifecycle_stage>:
    Condition:
    `flatten()` is deprecated as of rlang 1.1.0. ℹ Please use
    `purrr::list_flatten()` or `purrr::list_c()`.
  
  [ FAIL 6 | WARN 2 | SKIP 0 | PASS 320 ]
  Error: Test failures
  Execution halted