- using R version 4.1.3 (2022-03-10)
- using platform: x86_64-w64-mingw32 (64-bit)
- using session charset: ISO8859-1
- checking for file 'photosynthesis/DESCRIPTION' ... OK
- this is package 'photosynthesis' version '2.1.1'
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking whether package 'photosynthesis' can be installed ... OK
- checking installed package size ... NOTE
installed size is 7.1Mb
sub-directories of 1Mb or more:
doc 6.1Mb
- checking package directory ... OK
- checking 'build' directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking R files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [16s] OK
- checking Rd files ... [1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of 'data' directory ... OK
- checking data for non-ASCII characters ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [26s] OK
- checking for unstated dependencies in 'tests' ... OK
- checking tests ... [70s] ERROR
Running 'testthat.R' [70s]
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 D:/temp/RtmpiiNsRX/RLIBS_44146cdb5bb6/units/share/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.
i Actually got a <lifecycle_stage>:
Condition:
`flatten()` is deprecated as of rlang 1.1.0. i 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.
i Actually got a <lifecycle_stage>:
Condition:
`flatten()` is deprecated as of rlang 1.1.0. i 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.
i Actually got a <lifecycle_stage>:
Condition:
`flatten()` is deprecated as of rlang 1.1.0. i 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.
i Actually got a <lifecycle_stage>:
Condition:
`flatten()` is deprecated as of rlang 1.1.0. i 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.
i Actually got a <lifecycle_stage>:
Condition:
`flatten()` is deprecated as of rlang 1.1.0. i 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.
i Actually got a <lifecycle_stage>:
Condition:
`flatten()` is deprecated as of rlang 1.1.0. i Please use
`purrr::list_flatten()` or `purrr::list_c()`.
[ FAIL 6 | WARN 2 | SKIP 0 | PASS 320 ]
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes in 'inst/doc' ... OK
- checking re-building of vignette outputs ... [140s] OK
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR, 1 NOTE