- using R Under development (unstable) (2025-09-10 r88809)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-3) 15.2.0
GNU Fortran (Debian 15.2.0-3) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘CausalImpact/DESCRIPTION’ ... OK
- this is package ‘CausalImpact’ version ‘1.3.0’
- checking CRAN incoming feasibility ... [1s/2s] NOTE
Maintainer: ‘Alain Hauser <alhauser@google.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: c(person(given = c("Kay", "H."),
family = "Brodersen",
role = "aut",
email = "kbrodersen@google.com"),
person(given = "Alain",
family = "Hauser",
role = c("aut", "cre"),
email = "alhauser@google.com"))
as necessary.
Package CITATION file contains call(s) to old-style personList() or
as.personList(). Please use c() on person objects instead.
- 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 serialization versions ... OK
- checking whether package ‘CausalImpact’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/2s] OK
- checking loading without being on the library search path ... [1s/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 ... [9s/14s] OK
- checking Rd files ... [0s/0s] 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 ... [3s/4s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [29s/37s] ERROR
Running ‘CausalImpact_import_test.R’ [3s/4s]
Running ‘testthat.R’ [26s/32s]
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 ... [10s/14s] OK
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [0s/0s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE