Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sapfluxnetr)
  > 
  > test_check("sapfluxnetr")
  [1] "processing site ARG_MAZ (1 of 3)"
  [1] "processing site ARG_TRE (2 of 3)"
  [1] "processing site AUS_CAN_ST2_MIX (3 of 3)"
  [1] "processing site ARG_MAZ (1 of 3)"
  [1] "processing site ARG_TRE (2 of 3)"
  [1] "processing site AUS_CAN_ST2_MIX (3 of 3)"
  [1] "processing site ARG_MAZ (1 of 3)"
  [1] "processing site ARG_TRE (2 of 3)"
  [1] "processing site AUS_CAN_ST2_MIX (3 of 3)"
  Error in validObject(object) : 
    invalid class "sfn_data" object: 1: nrow(sapf_data) != nrow(env_data)
  invalid class "sfn_data" object: 2: nrow(sapf_data) != length(timestamp) | nrow(env_data) != length(timestamp)
  invalid class "sfn_data" object: 3: nrow(*_flags) =! nrow(*_flags) | nrow(*_flags) =! nrow(*_data)
  Error in validObject(object) : 
    invalid class "sfn_data" object: 1: nrow(sapf_data) != nrow(env_data)
  invalid class "sfn_data" object: 2: nrow(sapf_data) != length(timestamp) | nrow(env_data) != length(timestamp)
  invalid class "sfn_data" object: 3: nrow(*_flags) =! nrow(*_flags) | nrow(*_flags) =! nrow(*_data)
  Error in validObject(object) : 
    invalid class "sfn_data" object: 1: nrow(*_flags) =! nrow(*_flags) | nrow(*_flags) =! nrow(*_data)
  invalid class "sfn_data" object: 2: nrow(sapf_flags) != length(timestamp) | nrow(env_flags) != length(timestamp)
  Error in validObject(object) : 
    invalid class "sfn_data" object: 1: nrow(*_flags) =! nrow(*_flags) | nrow(*_flags) =! nrow(*_data)
  invalid class "sfn_data" object: 2: nrow(sapf_flags) != length(timestamp) | nrow(env_flags) != length(timestamp)
  Error in validObject(object) : 
    invalid class "sfn_data" object: 1: nrow(sapf_data) != length(timestamp) | nrow(env_data) != length(timestamp)
  invalid class "sfn_data" object: 2: length(timestamp) != length(solar_timestamp)
  invalid class "sfn_data" object: 3: nrow(sapf_flags) != length(timestamp) | nrow(env_flags) != length(timestamp)
  Error in validObject(object) : 
    invalid class "sfn_data" object: length(timestamp) != length(solar_timestamp)
  Error in validObject(object) : 
    invalid class "sfn_data" object: si_code slot can not be an empty string
  Error in validObject(object) : 
    invalid class "sfn_data" object: si_code must be of length = 1
  Error in validObject(object) : 
    invalid class "sfn_data" object: metadata slots can not be 0-row data frames
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (19)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-sfn_dplyr_methods.R:93:3): sfn_mutate returns correct results ───
  Error: undefined columns selected
  Backtrace:
      █
   1. └─sapfluxnetr::sfn_mutate(...) test-sfn_dplyr_methods.R:93:2
   2.   └─base::setdiff(as.data.frame(env_data_mod), as.data.frame(env_data))
   3.     ├─u[!duplicated(u) & (match(u, v, 0L) == 0L)]
   4.     └─base::`[.data.frame`(...)
  ── Error (test-sfn_dplyr_methods.R:138:3): sfn_mutate_at returns correct results ──
  Error: undefined columns selected
  Backtrace:
      █
   1. └─sapfluxnetr::sfn_mutate_at(...) test-sfn_dplyr_methods.R:138:2
   2.   └─base::setdiff(as.data.frame(sapf_data_mod), as.data.frame(sapf_data))
   3.     ├─u[!duplicated(u) & (match(u, v, 0L) == 0L)]
   4.     └─base::`[.data.frame`(...)
  
  [ FAIL 2 | WARN 3 | SKIP 19 | PASS 288 ]
  Error: Test failures
  Execution halted