Running 'testthat.R' [27s/31s]
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
  [ FAIL 4 | WARN 8 | SKIP 19 | PASS 347 ]
  
  == Skipped tests ===============================================================
  * On CRAN (19)
  
  == Failed tests ================================================================
  -- Failure (test-sfn_data_classes.R:562:3): show methods works -----------------
  `print\(ARG_TRE\)` does not match "Data from ARG_TRE site".
  Actual value: "sfn_data object\\nData from ARG_TRE site\\n\\nData kindly provided by  Seabstian Pfautsch  from  University of Sydney\\nand  Pablo Peri  from  Instituto Nacional de Tecnolog\\xeda Agropecuaria \\n\\nSite related literature:  DOI 10\.1007/s00468-013-0935-4 \\n\\nSapflow data:  312  observations of  4  trees/plants\\nSpecies present:  Nothofagus antarctica \\n\\nEnvironmental data:  312  observations\.\\nVariables present:\\n  ta rh vpd sw_in ws precip swc_shallow ppfd_in ext_rad \\n\\nBiome:  Woodland/Shrubland \\n\\nTIMESTAMP span:  2009-11-18 -03--2009-11-30 23:00:00 -03 \\n\\nSolar TIMESTAMP span:  2009-11-17 22:24:58 UTC--2009-11-30 21:20:48 UTC \\n\\nSapflow data flags:\\nNo flags present\\n\\nEnvironmental data flags:\\nRANGE_WARN   OUT_WARN CALCULATED \\n        18         24        624 \\n"
  Backtrace:
      x
   1. \-testthat::expect_output(print(ARG_TRE), "Data from ARG_TRE site") at test-sfn_data_classes.R:562:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-sfn_data_classes.R:563:3): show methods works -----------------
  `print\(ARG_TRE\)` does not match "Environmental data flags:".
  Actual value: "sfn_data object\\nData from ARG_TRE site\\n\\nData kindly provided by  Seabstian Pfautsch  from  University of Sydney\\nand  Pablo Peri  from  Instituto Nacional de Tecnolog\\xeda Agropecuaria \\n\\nSite related literature:  DOI 10\.1007/s00468-013-0935-4 \\n\\nSapflow data:  312  observations of  4  trees/plants\\nSpecies present:  Nothofagus antarctica \\n\\nEnvironmental data:  312  observations\.\\nVariables present:\\n  ta rh vpd sw_in ws precip swc_shallow ppfd_in ext_rad \\n\\nBiome:  Woodland/Shrubland \\n\\nTIMESTAMP span:  2009-11-18 -03--2009-11-30 23:00:00 -03 \\n\\nSolar TIMESTAMP span:  2009-11-17 22:24:58 UTC--2009-11-30 21:20:48 UTC \\n\\nSapflow data flags:\\nNo flags present\\n\\nEnvironmental data flags:\\nRANGE_WARN   OUT_WARN CALCULATED \\n        18         24        624 \\n"
  Backtrace:
      x
   1. \-testthat::expect_output(print(ARG_TRE), "Environmental data flags:") at test-sfn_data_classes.R:563:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-sfn_data_classes.R:564:3): show methods works -----------------
  `print\(ARG_MAZ\)` does not match "Data from ARG_MAZ site".
  Actual value: "sfn_data object\\nData from ARG_MAZ site\\n\\nData kindly provided by  Sebastian Pfautsch  from  University of Sydney\\nand  Pablo Peri  from  Instituto Nacional de Tecnolog\\xeda Agropecuaria \\n\\nSite related literature:  DOI 10\.1007/s00468-013-0935-4 \\n\\nSapflow data:  288  observations of  5  trees/plants\\nSpecies present:  Nothofagus pumilio \\n\\nEnvironmental data:  288  observations\.\\nVariables present:\\n  ta rh vpd sw_in ws precip swc_shallow ppfd_in ext_rad \\n\\nBiome:  Woodland/Shrubland \\n\\nTIMESTAMP span:  2009-11-19 -03--2009-11-30 23:00:00 -03 \\n\\nSolar TIMESTAMP span:  2009-11-18 22:24:18 UTC--2009-11-30 21:20:24 UTC \\n\\nSapflow data flags:\\nNo flags present\\n\\nEnvironmental data flags:\\nRANGE_WARN   OUT_WARN CALCULATED \\n         9         17        576 \\n"
  Backtrace:
      x
   1. \-testthat::expect_output(print(ARG_MAZ), "Data from ARG_MAZ site") at test-sfn_data_classes.R:564:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  -- Failure (test-sfn_data_classes.R:565:3): show methods works -----------------
  `print\(ARG_MAZ\)` does not match "Environmental data flags:".
  Actual value: "sfn_data object\\nData from ARG_MAZ site\\n\\nData kindly provided by  Sebastian Pfautsch  from  University of Sydney\\nand  Pablo Peri  from  Instituto Nacional de Tecnolog\\xeda Agropecuaria \\n\\nSite related literature:  DOI 10\.1007/s00468-013-0935-4 \\n\\nSapflow data:  288  observations of  5  trees/plants\\nSpecies present:  Nothofagus pumilio \\n\\nEnvironmental data:  288  observations\.\\nVariables present:\\n  ta rh vpd sw_in ws precip swc_shallow ppfd_in ext_rad \\n\\nBiome:  Woodland/Shrubland \\n\\nTIMESTAMP span:  2009-11-19 -03--2009-11-30 23:00:00 -03 \\n\\nSolar TIMESTAMP span:  2009-11-18 22:24:18 UTC--2009-11-30 21:20:24 UTC \\n\\nSapflow data flags:\\nNo flags present\\n\\nEnvironmental data flags:\\nRANGE_WARN   OUT_WARN CALCULATED \\n         9         17        576 \\n"
  Backtrace:
      x
   1. \-testthat::expect_output(print(ARG_MAZ), "Environmental data flags:") at test-sfn_data_classes.R:565:2
   2.   \-testthat::expect_match(...)
   3.     \-testthat:::expect_match_(...)
  
  [ FAIL 4 | WARN 8 | SKIP 19 | PASS 347 ]
  Error: Test failures
  Execution halted