Error in seas(., x11 = "") : no output has been generated (R seasonal package isn't working fine).

I have re-installed R language, R-Studio, seasonal package and as well as x13binary package but still issue doesn't resolve.
Even I have installed Rtools.

#Code With Error I Am Getting:

library(fpp2)
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
-- Attaching packages -------------------------------------------------- fpp2 2.4 --
v ggplot2 3.3.3 v fma 2.4
v forecast 8.13 v expsmooth 2.3

library(seasonal)

packageVersion("fpp2")
[1] ‘2.4’
packageVersion("seasonal")
[1] ‘1.7.1’
packageVersion("x13binary")
[1] ‘1.1.39.2’

seas(AirPassengers, x11 = "")
Error in seas(AirPassengers, x11 = "") : no output has been generated

elecequip %>% seas(x11="") -> fit
Error in seas(., x11 = "") : no output has been generated

What does the following give you?

x13binary::checkX13binary()

Untitleasd

OK. This is puzzling. Can you please create a reprex of the following code and paste the output in a reply.

library(fpp2)
library(seasonal)
seas(AirPassengers, x11="")
sessionInfo()

See https://www.tidyverse.org/help/#reprex-pkg for some instructions.

1 Like
library(fpp2)
#> Registered S3 method overwritten by 'quantmod':
#>   method            from
#>   as.zoo.data.frame zoo
#> -- Attaching packages ---------------------------------------------- fpp2 2.4 --
#> v ggplot2   3.3.3     v fma       2.4  
#> v forecast  8.13      v expsmooth 2.3
#> 
library(seasonal)
seas(AirPassengers, x11="")
#> Error in seas(AirPassengers, x11 = ""): no output has been generated
sessionInfo()
#> R version 4.0.3 (2020-10-10)
#> Platform: x86_64-w64-mingw32/x64 (64-bit)
#> Running under: Windows 10 x64 (build 10586)
#> 
#> Matrix products: default
#> 
#> locale:
#> [1] LC_COLLATE=English_United States.1252 
#> [2] LC_CTYPE=English_United States.1252   
#> [3] LC_MONETARY=English_United States.1252
#> [4] LC_NUMERIC=C                          
#> [5] LC_TIME=English_United States.1252    
#> 
#> attached base packages:
#> [1] stats     graphics  grDevices utils     datasets  methods   base     
#> 
#> other attached packages:
#> [1] seasonal_1.7.1 expsmooth_2.3  fma_2.4        forecast_8.13  ggplot2_3.3.3 
#> [6] fpp2_2.4      
#> 
#> loaded via a namespace (and not attached):
#>  [1] zoo_1.8-8          tidyselect_1.1.0   xfun_0.20          purrr_0.3.4       
#>  [5] urca_1.3-0         lattice_0.20-41    colorspace_2.0-0   vctrs_0.3.6       
#>  [9] generics_0.1.0     htmltools_0.5.0    yaml_2.2.1         rlang_0.4.10      
#> [13] pillar_1.4.7       withr_2.4.0        glue_1.4.2         TTR_0.24.2        
#> [17] lifecycle_0.2.0    quantmod_0.4.18    stringr_1.4.0      timeDate_3043.102 
#> [21] munsell_0.5.0      gtable_0.3.0       evaluate_0.14      knitr_1.30        
#> [25] tseries_0.10-48    ps_1.5.0           lmtest_0.9-38      parallel_4.0.3    
#> [29] curl_4.3           fansi_0.4.1        highr_0.8          xts_0.12.1        
#> [33] Rcpp_1.0.5         scales_1.1.1       x13binary_1.1.39-2 fracdiff_1.5-1    
#> [37] digest_0.6.27      stringi_1.5.3      dplyr_1.0.2        grid_4.0.3        
#> [41] quadprog_1.5-8     cli_2.2.0          tools_4.0.3        magrittr_2.0.1    
#> [45] tibble_3.0.4       crayon_1.3.4       pkgconfig_2.0.3    ellipsis_0.3.1    
#> [49] assertthat_0.2.1   rmarkdown_2.6      rstudioapi_0.13    R6_2.5.0          
#> [53] nnet_7.3-14        nlme_3.1-149       compiler_4.0.3

Created on 2021-01-24 by the reprex package (v0.3.0)

Could you try the {seasonal} packages tests using the {reprex} package?

seasonal::checkX13()
seasonal::checkX13()
#> seasonal is using the X-13 binaries provided by x13binary
#> X-13 installation test:
#>   - X13_PATH correctly specified
#>   - binary executable file found
#> 
#> Error : X-13 command line test run failed. To debug, try running the binary file directly in the terminal. Try using it with Testairline.spc which is part of the program package by the Census Office.
#> 
#> Error : seasonal test run failed, with the message:
#> Error in seas(datasets::AirPassengers) : no output has been generated
#> 
#> Error details:
#>   - X13_PATH:         D:/Installed/R/R-4.0.3/library/x13binary/bin
#>   - Full binary path: "D:/Installed/R/R-4.0.3/library/x13binary/bin/x13ashtml.exe"
#>   - Platform:         x86_64-w64-mingw32
#>   - R-Version:        R version 4.0.3 (2020-10-10)
#>   - seasonal-Version: 1.7.1

Created on 2021-01-25 by the reprex package (v0.3.0)

As the error above suggests, the next step would be to run the binary at D:/Installed/R/R-4.0.3/library/x13binary/bin/x13ashtml.exe manually using the Testairline.spc input.
Hopefully that gives you more information.

1 Like

Thank you so much your advice was quite useful in solving the issue.
(My apology as I have acknowledged you very late).

Sir, thank you so much for your concern and advice. You were exactly right there was a issue in x13binary file. I just have to run x13binary manually which solves the issue as as advice by @mitchelloharawild.
(My apology as I have acknowledged you quite late and also regretted for if I caused any inconvenience).