* using log directory 'd:/Rcompile/CRANpkg/local/3.2/CausalImpact.Rcheck' * using R version 3.2.5 (2016-04-14) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'CausalImpact/DESCRIPTION' ... OK * this is package 'CausalImpact' version '1.2.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 R 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 ... OK * checking Rd files ... 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 ... ERROR Running examples in 'CausalImpact-Ex.R' failed The error most likely occurred in: > ### Name: CausalImpact > ### Title: Inferring causal impact using structural time-series models > ### Aliases: CausalImpact > > ### ** Examples > > # Example 1 > # > # Example analysis on a simple artificial dataset > # consisting of a response variable y and a > # single covariate x1. > set.seed(1) > x1 <- 100 + arima.sim(model = list(ar = 0.999), n = 52) > y <- 1.2 * x1 + rnorm(52) > y[41:52] <- y[41:52] + 10 > data <- cbind(y, x1) > pre.period <- c(1, 40) > post.period <- c(41, 52) > impact <- CausalImpact(data, pre.period, post.period) Error: unexpected NA found in cum.pred.mean Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... ERROR Running the tests in 'tests/CausalImpact_import_test.R' failed. Last 13 lines of output: > library(testthat) > > # Create a data set with one explanatory variable. > set.seed(1) > x1 <- 100 + arima.sim(model = list(ar = 0.999), n = 100) > y <- 1.2 * x1 + rnorm(100) > y[71:100] <- y[71:100] + 10 > data <- cbind(y, x1) > > # Test that a `CausalImpact` object is created when the package is not loaded. > impact <- CausalImpact::CausalImpact(data, c(1, 70), c(71, 100)) Error: unexpected NA found in cum.pred.mean Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking running R code from vignettes ... [1s] OK * checking re-building of vignette outputs ... NOTE Error in re-building vignettes: ... Loading required package: bsts Loading required package: BoomSpikeSlab Loading required package: Boom Loading required package: MASS 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:Boom': PlotDynamicDistribution Quitting from lines 89-90 (CausalImpact.Rmd) Error: processing vignette 'CausalImpact.Rmd' failed with diagnostics: unexpected NA found in cum.pred.mean Execution halted * checking PDF version of manual ... OK * DONE Status: 2 ERRORs, 1 NOTE