Running ‘test-all.R’ [2s/2s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > library(FinancialInstrument)
  Loading required package: quantmod
  Loading required package: xts
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  Loading required package: TTR
  Version 0.4-0 included new data defaults. See ?getSymbols.
  > 
  > test_package("FinancialInstrument")
  month codes: ..
  getSymbols.FI: .
  instruments: ..............
  redenominate: 1234567
  
  Failed -------------------------------------------------------------------------
  1. Error: convert TO USD (@test-redenominate.R#17) -----------------------------
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: expect_equal(as.numeric(redenominate("xcy", "USD", env = .dat)), c(4, 3.75)) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:17
  2: compare(object, expected, ...)
  3: redenominate("xcy", "USD", env = .dat)
  4: merge(rate, x, all = FALSE)
  5: merge.xts(rate, x, all = FALSE)
  
  2. Error: convert FROM USD (@test-redenominate.R#20) ---------------------------
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: expect_equal(as.numeric(redenominate("xus", "CCY", env = .dat)), c(10, 22, 27, 40, 
         60)) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:20
  2: compare(object, expected, ...)
  3: redenominate("xus", "CCY", env = .dat)
  4: merge(rate, x, all = FALSE)
  5: merge.xts(rate, x, all = FALSE)
  
  3. Error: xts instead of name (@test-redenominate.R#23) ------------------------
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: expect_equal(as.numeric(redenominate(.dat$xcy, "USD", "CCY", env = .dat)), c(4, 3.75)) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:23
  2: compare(object, expected, ...)
  3: redenominate(.dat$xcy, "USD", "CCY", env = .dat)
  4: merge(rate, x, all = FALSE)
  5: merge.xts(rate, x, all = FALSE)
  
  4. Error: uses currency from instrument if old_base is missing (@test-redenominate.R#26) 
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: expect_equal(as.numeric(redenominate("xus", "CCY", env = .dat)), c(10, 22, 27, 40, 
         60)) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:26
  2: compare(object, expected, ...)
  3: redenominate("xus", "CCY", env = .dat)
  4: merge(rate, x, all = FALSE)
  5: merge.xts(rate, x, all = FALSE)
  
  5. Error: provided old_base overrides instrument (@test-redenominate.R#29) -----
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: expect_equal(as.numeric(redenominate("xus", "CCY", "USD", env = .dat)), c(10, 22, 
         27, 40, 60)) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:29
  2: compare(object, expected, ...)
  3: redenominate("xus", "CCY", "USD", env = .dat)
  4: merge(rate, x, all = FALSE)
  5: merge.xts(rate, x, all = FALSE)
  
  6. Error: no instrument defined (@test-redenominate.R#33) ----------------------
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: expect_equal(as.numeric(redenominate("xus", "CCY", "USD", env = .dat)), c(10, 22, 
         27, 40, 60)) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:33
  2: compare(object, expected, ...)
  3: redenominate("xus", "CCY", "USD", env = .dat)
  4: merge(rate, x, all = FALSE)
  5: merge.xts(rate, x, all = FALSE)
  
  7. Error: inverts FX if necessary (@test-redenominate.R#37) --------------------
  Value of SET_STRING_ELT() must be a 'CHARSXP' not a 'NULL'
  1: redenominate("xus", "CCY", "USD", env = .dat) at /home/hornik/tmp/R.check/r-devel-clang/Work/build/Packages/FinancialInstrument/tests/test-redenominate.R:37
  2: merge(rate, x, all = FALSE)
  3: merge.xts(rate, x, all = FALSE)
  
  DONE ===========================================================================
  Error: Test failures
  In addition: Warning message:
  Placing tests in `inst/tests/` is deprecated. Please use `tests/testthat/` instead 
  Execution halted