Running ‘CausalImpact_import_test.R’ [8s/10s]
  Running ‘testthat.R’ [53s/65s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Copyright 2014 Google Inc. All rights reserved.
  > #
  > # Licensed under the Apache License, Version 2.0 (the "License");
  > # you may not use this file except in compliance with the License.
  > # You may obtain a copy of the License at
  > #
  > # http://www.apache.org/licenses/LICENSE-2.0
  > #
  > # Unless required by applicable law or agreed to in writing, software
  > # distributed under the License is distributed on an "AS IS" BASIS,
  > # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  > # See the License for the specific language governing permissions and
  > # limitations under the License.
  > 
  > # Unit test driver for the CausalImpact package.
  > #
  > # Author: kbrodersen@google.com (Kay Brodersen)
  > 
  > library(CausalImpact)
  Loading required package: bsts
  Loading required package: BoomSpikeSlab
  Loading required package: Boom
  Loading required package: MASS
  
  Attaching package: 'Boom'
  
  The following object is masked from 'package:stats':
  
      rWishart
  
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  Loading required package: xts
  > library(testthat)
  > 
  > # Open graphics device and run tests
  > plot.file <- tempfile("CausalImpact", fileext = ".png")
  > png(plot.file)
  > testthat::test_check("CausalImpact")
  1. Failure: CausalImpact.RunWithData.MissingValues (@test-impact-analysis.R#446) 
  impact$series[-(18:20), -exclude.columns] not equal to impact.na.end$series[-(18:20), -exclude.columns].
  Mean relative difference: 0.02860173
  
  
  2. Failure: CausalImpact.RunWithData.MissingValues (@test-impact-analysis.R#452) 
  impact$summary not equal to impact.na.end$summary.
  Component "Pred": Mean relative difference: 0.0009219895
  Component "Pred.lower": Mean relative difference: 0.001932777
  Component "Pred.upper": Mean relative difference: 0.01035113
  Component "Pred.sd": Mean relative difference: 0.05902474
  Component "AbsEffect": Mean relative difference: 0.01246353
  Component "AbsEffect.lower": Mean relative difference: 0.08137685
  Component "AbsEffect.upper": Mean relative difference: 0.160975
  Component "AbsEffect.sd": Mean relative difference: 0.05902474
  Component "RelEffect": Mean relative difference: 0.01153091
  Component "RelEffect.lower": Mean relative difference: 0.08038075
  Component "RelEffect.upper": Mean relative difference: 0.1617478
  Component "RelEffect.sd": Mean relative difference: 0.05804923
  Component "p": Mean relative difference: 0.1747368
  
  
  3. Failure: CausalImpact.RunWithData.LargeIntegerInput (@test-impact-analysis.R#562) 
  original.summary[, scaled.columns]/1e+06 not equal to rescaled.summary[, scaled.columns].
  Component "Pred.sd": Mean relative difference: 0.03632127
  Component "AbsEffect.sd": Mean relative difference: 0.03632127
  
  
  testthat results ================================================================
  OK: 736 SKIPPED: 0 FAILED: 3
  1. Failure: CausalImpact.RunWithData.MissingValues (@test-impact-analysis.R#446) 
  2. Failure: CausalImpact.RunWithData.MissingValues (@test-impact-analysis.R#452) 
  3. Failure: CausalImpact.RunWithData.LargeIntegerInput (@test-impact-analysis.R#562) 
  
  Error: testthat unit tests failed
  Execution halted