- using R Under development (unstable) (2025-09-11 r88811)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 21.1.0
flang version 21.1.0
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘CausalImpact’ can be installed ... [11s/18s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [20s/27s] OK
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [7s/10s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [77s/95s] ERROR
Running ‘CausalImpact_import_test.R’
Running ‘testthat.R’ [69s/84s]
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 ... [19s/26s] OK
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR