Weber Sylvain (HES)
2020-Sep-17 13:59 UTC
[R] Seasonal adjustment with seas - Error: X-13 has returned a non-zero exist status
Dear all,
I am using function "seas" from package "seasonal" for
seasonal adjustment of time series. I am using the latest version of R (4.0.2,
64-bit).
The following lines provide a small working example:
## EXAMPLE ##
library(seasonal)
m <- seas(AirPassengers)
m
On my private laptop, everything is going smoothly, and I obtain the following
output:
## OUTPUT ##
Call:
seas(x = AirPassengers)
Coefficients:
Weekday Easter[1] AO1951.May MA-Nonseasonal-01
-0.00295 0.01777 0.10016 0.11562
MA-Seasonal-12
0.49736
But on my office computer, I receive the following error message after issuing
" m <- seas(AirPassengers)":
## ERROR ##
Error: X-13 has returned a non-zero exist status, which means that the current
spec file cannot be processed for an unknown reason.
In addition: Warning message:
In system(cmd, intern = intern, wait = wait | intern, show.output.on.console =
wait, :
running command 'C:\Windows\system32\cmd.exe /c
"\\hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe"
C:\Users\SYLVAI~1.WEB\AppData\Local\Temp\Rtmpe0MDE7\x132d0cb8579b9/iofile -n
-s' had status 1
A similar issue has been already mentioned in various blogs, for instance:
https://rdrr.io/github/christophsax/seasonal/src/travis/test-x13messages.R
http://freerangestats.info/blog/2015/12/21/m3-and-x13
https://github.com/christophsax/seasonal/issues/154
but I couldn't find any solution yet.
Does anyone have any idea why this issue is occurring?
Thanks very much.
Sylvain
Bert Gunter
2020-Sep-17 16:02 UTC
[R] Seasonal adjustment with seas - Error: X-13 has returned a non-zero exist status
Consider contacting the package maintainer, found by:
maintainer("seasonal") for such a package specific question.
Cheers,
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, Sep 17, 2020 at 8:46 AM Weber Sylvain (HES) <sylvain.weber at
hesge.ch>
wrote:
> Dear all,
>
> I am using function "seas" from package "seasonal" for
seasonal adjustment
> of time series. I am using the latest version of R (4.0.2, 64-bit).
> The following lines provide a small working example:
> ## EXAMPLE ##
> library(seasonal)
> m <- seas(AirPassengers)
> m
>
> On my private laptop, everything is going smoothly, and I obtain the
> following output:
> ## OUTPUT ##
> Call:
> seas(x = AirPassengers)
>
> Coefficients:
> Weekday Easter[1] AO1951.May
> MA-Nonseasonal-01
> -0.00295 0.01777 0.10016
> 0.11562
> MA-Seasonal-12
> 0.49736
>
> But on my office computer, I receive the following error message after
> issuing " m <- seas(AirPassengers)":
> ## ERROR ##
> Error: X-13 has returned a non-zero exist status, which means that the
> current spec file cannot be processed for an unknown reason.
> In addition: Warning message:
> In system(cmd, intern = intern, wait = wait | intern,
> show.output.on.console = wait, :
> running command 'C:\Windows\system32\cmd.exe /c "\\
>
hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe"
> C:\Users\SYLVAI~1.WEB\AppData\Local\Temp\Rtmpe0MDE7\x132d0cb8579b9/iofile
> -n -s' had status 1
>
> A similar issue has been already mentioned in various blogs, for instance:
> https://rdrr.io/github/christophsax/seasonal/src/travis/test-x13messages.R
> http://freerangestats.info/blog/2015/12/21/m3-and-x13
> https://github.com/christophsax/seasonal/issues/154
> but I couldn't find any solution yet.
>
> Does anyone have any idea why this issue is occurring?
>
> Thanks very much.
>
> Sylvain
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
Jeff Newmiller
2020-Sep-17 16:16 UTC
[R] Seasonal adjustment with seas - Error: X-13 has returned a non-zero exist status
I don't know definitively, but if I were in your shoes I would put my personal package library on a local drive. UNC paths are not supported by all of the Windows file-related system calls. On September 17, 2020 6:59:33 AM PDT, "Weber Sylvain (HES)" <sylvain.weber at hesge.ch> wrote:>Dear all, > >I am using function "seas" from package "seasonal" for seasonal >adjustment of time series. I am using the latest version of R (4.0.2, >64-bit). >The following lines provide a small working example: >## EXAMPLE ## >library(seasonal) >m <- seas(AirPassengers) >m > >On my private laptop, everything is going smoothly, and I obtain the >following output: >## OUTPUT ## >Call: >seas(x = AirPassengers) > >Coefficients: > Weekday Easter[1] AO1951.May MA-Nonseasonal-01 > -0.00295 0.01777 0.10016 0.11562 > MA-Seasonal-12 > 0.49736 > >But on my office computer, I receive the following error message after >issuing " m <- seas(AirPassengers)": >## ERROR ## >Error: X-13 has returned a non-zero exist status, which means that the >current spec file cannot be processed for an unknown reason. >In addition: Warning message: >In system(cmd, intern = intern, wait = wait | intern, >show.output.on.console = wait, : >running command 'C:\Windows\system32\cmd.exe /c >"\\hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe" >C:\Users\SYLVAI~1.WEB\AppData\Local\Temp\Rtmpe0MDE7\x132d0cb8579b9/iofile >-n -s' had status 1 > >A similar issue has been already mentioned in various blogs, for >instance: >https://rdrr.io/github/christophsax/seasonal/src/travis/test-x13messages.R >http://freerangestats.info/blog/2015/12/21/m3-and-x13 >https://github.com/christophsax/seasonal/issues/154 >but I couldn't find any solution yet. > >Does anyone have any idea why this issue is occurring? > >Thanks very much. > >Sylvain > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.
Jeff Newmiller
2020-Sep-17 16:17 UTC
[R] Seasonal adjustment with seas - Error: X-13 has returned a non-zero exist status
I don't know definitively, but if I were in your shoes I would put my personal package library on a local drive. UNC paths are not supported by all of the Windows file-related system calls. On September 17, 2020 6:59:33 AM PDT, "Weber Sylvain (HES)" <sylvain.weber at hesge.ch> wrote:>Dear all, > >I am using function "seas" from package "seasonal" for seasonal >adjustment of time series. I am using the latest version of R (4.0.2, >64-bit). >The following lines provide a small working example: >## EXAMPLE ## >library(seasonal) >m <- seas(AirPassengers) >m > >On my private laptop, everything is going smoothly, and I obtain the >following output: >## OUTPUT ## >Call: >seas(x = AirPassengers) > >Coefficients: > Weekday Easter[1] AO1951.May MA-Nonseasonal-01 > -0.00295 0.01777 0.10016 0.11562 > MA-Seasonal-12 > 0.49736 > >But on my office computer, I receive the following error message after >issuing " m <- seas(AirPassengers)": >## ERROR ## >Error: X-13 has returned a non-zero exist status, which means that the >current spec file cannot be processed for an unknown reason. >In addition: Warning message: >In system(cmd, intern = intern, wait = wait | intern, >show.output.on.console = wait, : >running command 'C:\Windows\system32\cmd.exe /c >"\\hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe" >C:\Users\SYLVAI~1.WEB\AppData\Local\Temp\Rtmpe0MDE7\x132d0cb8579b9/iofile >-n -s' had status 1 > >A similar issue has been already mentioned in various blogs, for >instance: >https://rdrr.io/github/christophsax/seasonal/src/travis/test-x13messages.R >http://freerangestats.info/blog/2015/12/21/m3-and-x13 >https://github.com/christophsax/seasonal/issues/154 >but I couldn't find any solution yet. > >Does anyone have any idea why this issue is occurring? > >Thanks very much. > >Sylvain > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity. -- Sent from my phone. Please excuse my brevity.
Bill Dunlap
2020-Sep-17 16:35 UTC
[R] Seasonal adjustment with seas - Error: X-13 has returned a non-zero exist status
The problem might to due to using an UNC path (//machine//blah/...) instead
of the traditional DOS path ("H:/blah/...").
E.g., if my working directory has a UNC path, cmd.exe will not work as
expected:> getwd()
[1] "\\\\server/dept/devel/bill-sandbox"> system("C:\\WINDOWS\\SYSTEM32\\cmd.exe /c echo foo bar",
intern=TRUE)
[1] "'\\\\server\\dept\\devel\\bill-sandbox'"
[2] "CMD.EXE was started with the above path as the current
directory."
[3] "UNC paths are not supported. Defaulting to Windows directory."
[4] "foo bar"
You can test that by mapping "\\hes-nas-prairie.hes.adhes.hesge.ch/Home_S
<http://hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe>"
to a driver letter and using letter-colon everywhere instead of
"\\...".
-Bill
On Thu, Sep 17, 2020 at 8:46 AM Weber Sylvain (HES) <sylvain.weber at
hesge.ch>
wrote:
> Dear all,
>
> I am using function "seas" from package "seasonal" for
seasonal adjustment
> of time series. I am using the latest version of R (4.0.2, 64-bit).
> The following lines provide a small working example:
> ## EXAMPLE ##
> library(seasonal)
> m <- seas(AirPassengers)
> m
>
> On my private laptop, everything is going smoothly, and I obtain the
> following output:
> ## OUTPUT ##
> Call:
> seas(x = AirPassengers)
>
> Coefficients:
> Weekday Easter[1] AO1951.May
> MA-Nonseasonal-01
> -0.00295 0.01777 0.10016
> 0.11562
> MA-Seasonal-12
> 0.49736
>
> But on my office computer, I receive the following error message after
> issuing " m <- seas(AirPassengers)":
> ## ERROR ##
> Error: X-13 has returned a non-zero exist status, which means that the
> current spec file cannot be processed for an unknown reason.
> In addition: Warning message:
> In system(cmd, intern = intern, wait = wait | intern,
> show.output.on.console = wait, :
> running command 'C:\Windows\system32\cmd.exe /c "\\
>
hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe"
> C:\Users\SYLVAI~1.WEB\AppData\Local\Temp\Rtmpe0MDE7\x132d0cb8579b9/iofile
> -n -s' had status 1
>
> A similar issue has been already mentioned in various blogs, for instance:
> https://rdrr.io/github/christophsax/seasonal/src/travis/test-x13messages.R
> http://freerangestats.info/blog/2015/12/21/m3-and-x13
> https://github.com/christophsax/seasonal/issues/154
> but I couldn't find any solution yet.
>
> Does anyone have any idea why this issue is occurring?
>
> Thanks very much.
>
> Sylvain
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
Weber Sylvain (HES)
2020-Sep-18 10:08 UTC
[R] Seasonal adjustment with seas - Error: X-13 has returned a non-zero exist status
Dear Bill, Jeff, and Bert,
Thanks so much for the replies.
Bill is absolutely right. The problem came from the UNC path.
I could solve the issue by adding the following lines to my Rprofile:
myPaths <- .libPaths()
myPaths <- c('M:/R/win-library/4.0', myPaths[2]) # where
'M:/R/win-library/4.0' is the traditional DOS path corresponding to the
UNC path \\...
.libPaths(myPaths)
Thanks again!
Sylvain
De?: Bill Dunlap <williamwdunlap at gmail.com>
Envoy??: jeudi, 17 septembre 2020 18:35
??: Weber Sylvain (HES) <sylvain.weber at hesge.ch>
Cc?: r-help at R-project.org
Objet?: Re: [R] Seasonal adjustment with seas - Error: X-13 has returned a
non-zero exist status
The problem might to due to using an UNC path (//machine//blah/...) instead of
the traditional DOS path ("H:/blah/...").
E.g., if my working directory has a UNC path, cmd.exe will not work as
expected:> getwd()
[1] "\\\\server/dept/devel/bill-sandbox"> system("C:\\WINDOWS\\SYSTEM32\\cmd.exe /c echo foo bar",
intern=TRUE)
[1] "'\\\\server\\dept\\devel\\bill-sandbox'" ? ? ? ? ? ? ? ?
? ? ? ? ?
[2] "CMD.EXE was started with the above path as the current
directory."
[3] "UNC paths are not supported.? Defaulting to Windows directory." ?
[4] "foo bar"? ? ? ? ? ? ? ? ? ? ? ? ??
You can test that by mapping
"\\http://hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe"
to a driver letter and using letter-colon everywhere instead of
"\\...".
-Bill
On Thu, Sep 17, 2020 at 8:46 AM Weber Sylvain (HES) <mailto:sylvain.weber at
hesge.ch> wrote:
Dear all,
I am using function "seas" from package "seasonal" for
seasonal adjustment of time series. I am using the latest version of R (4.0.2,
64-bit).
The following lines provide a small working example:
## EXAMPLE ##
library(seasonal)
m <- seas(AirPassengers)
m
On my private laptop, everything is going smoothly, and I obtain the following
output:
## OUTPUT ##
Call:
seas(x = AirPassengers)
Coefficients:
? ? ? ? ? Weekday? ? ? ? ? Easter[1]? ? ? ? ?AO1951.May? MA-Nonseasonal-01?
? ? ? ? ?-0.00295? ? ? ? ? ? 0.01777? ? ? ? ? ? 0.10016? ? ? ? ? ? 0.11562?
? ?MA-Seasonal-12?
? ? ? ? ? 0.49736?
But on my office computer, I receive the following error message after issuing
" m <- seas(AirPassengers)":
## ERROR ##
Error: X-13 has returned a non-zero exist status, which means that the current
spec file cannot be processed for an unknown reason.
In addition: Warning message:
In system(cmd, intern = intern, wait = wait | intern, show.output.on.console =
wait,? :
? running command 'C:\Windows\system32\cmd.exe /c
"\\http://hes-nas-prairie.hes.adhes.hesge.ch/Home_S/sylvain.weber/Documents/R/win-library/4.0/x13binary/bin/x13ashtml.exe"
C:\Users\SYLVAI~1.WEB\AppData\Local\Temp\Rtmpe0MDE7\x132d0cb8579b9/iofile -n
-s' had status 1
A similar issue has been already mentioned in various blogs, for instance:
https://rdrr.io/github/christophsax/seasonal/src/travis/test-x13messages.R
http://freerangestats.info/blog/2015/12/21/m3-and-x13
https://github.com/christophsax/seasonal/issues/154
but I couldn't find any solution yet.
Does anyone have any idea why this issue is occurring?
Thanks very much.
Sylvain
______________________________________________
mailto:R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.