* using log directory 'd:/Rcompile/CRANpkg/local/4.5/CausalImpact.Rcheck' * using R version 4.5.1 (2025-06-13 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.2.0 GNU Fortran (GCC) 14.2.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'CausalImpact/DESCRIPTION' ... OK * this is package 'CausalImpact' version '1.3.0' * 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 'CausalImpact' can be installed ... OK * checking installed package size ... OK * 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [1s] 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 ... [6s] OK * checking Rd files ... [0s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [46s] ERROR Running 'CausalImpact_import_test.R' [5s] Running 'testthat.R' [41s] Running the tests in 'tests/testthat.R' failed. Complete output: > # Copyright 2014-2022 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 Attaching package: 'Boom' The following object is masked from 'package:stats': rWishart Attaching package: 'BoomSpikeSlab' The following object is masked from 'package:stats': knots Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric Loading required package: xts Attaching package: 'bsts' The following object is masked from 'package:BoomSpikeSlab': SuggestBurn > library(testthat) > > # Open graphics device and run tests > plot.file <- tempfile("CausalImpact", fileext = ".png") > png(plot.file) > testthat::test_check("CausalImpact") [ FAIL 3 | WARN 4 | SKIP 0 | PASS 738 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-impact-plot.R:107:3'): CreateImpactPlot ────────────────────── class(q) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 ── Failure ('test-impact-plot.R:118:3'): CreateImpactPlot ────────────────────── class(q) not equal to c("gg", "ggplot"). Lengths differ: 5 is not 2 ── Failure ('test-impact-plot.R:147:3'): CreateImpactPlot ────────────────────── !isTRUE(all.equal(q1, q2, check.environment = FALSE)) is not TRUE `actual`: FALSE `expected`: TRUE [ FAIL 3 | WARN 4 | SKIP 0 | PASS 738 ] Error: Test failures Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [11s] OK * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR