Coder Social home page Coder Social logo

x13binary's People

Contributors

antonov548 avatar christophsax avatar dashaub avatar eddelbuettel avatar jeroen avatar krlmlr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

x13binary's Issues

Set generous timeout

CRAN emailed:

Dear maintainer,

Please see the problems shown on
<https://cran.r-project.org/web/checks/check_results_x13binary.html>.

Please correct before 2023-09-21 to safely retain your package on CRAN.

and indeed we currently see on two machines in Vienna

* installing to library ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages’
* installing *source* package ‘x13binary’ ...
** package ‘x13binary’ successfully unpacked and MD5 sums checked
** using staged installation
Error in download.file("https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml",  : 
  cannot open URL ‘https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml’
In addition: Warning message:
In download.file("https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml",  :
  URL ‘https://raw.githubusercontent.com/x13org/x13prebuilt/master/v1.1.57/linux/64/x13ashtml’: Timeout of 10 seconds was reached
Execution halted
ERROR: configuration failed for package ‘x13binary’
* removing ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/build/Packages/x13binary’

I honestly do not understand my CRAN does not set options(timeout) higher by default on their machine (cc @kurthornik) but will of course do as asked and set that in script configure at

${R_HOME}/bin/Rscript -e "download.file(\"${url}\", \"${file}\", quiet=TRUE, method='libcurl')"

as asked.

CC to @christophsax as heads-up

May you add aarch64 to the supported architectures?

Raspberry Pi Debian OS reports aarch64:

$ uname -a
Linux Monolith 5.15.61-v8+ #1579 SMP PREEMPT Fri Aug 26 11:16:44 BST 2022 aarch64 GNU/Linux

$ lsb_release --all
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye

Thanks in advance :-)

Sys Req, Solaris and Seasonal

I see a certain problem with the no Solaris requirement in x13binary. If seasonal depends on x13binary, it will also not run on Solaris. This is kind of a regression: Perhaps someone has managed to build X-13 there and is using it happily.

An alternative would be to add to configure and checkX13binary a condition: When on Solaris, just do nothing, perhaps return a message, but not an error. That way we would pass the CRAN tests for Solaris as well.

I guess seasonal needs some kind of opt-out mechanism for x13binary. At the moment, this can be done by setting an overriding path to X-13. This is useful for the Solaris user above, if he exists, for the Windows user (#7) who has X-13 installed on a place specified by corporate policy and for Brian Monsell, who wants to run new versions of X-13.

R CMD CHECK

  • local runs on mac are fine
  • win builder failed on devel but not on release. Something with the download didn't worked out as it should. I try it locally to see what's behind.

R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"

Christophs-MacBook-Pro:~ christoph$ R CMD CHECK --as-cran x13binary_0.0.4.tar.gz 
* using log directory ‘/Users/christoph/x13binary.Rcheck’
* using R version 3.2.3 (2015-12-10)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* using option ‘--as-cran’
* checking for file ‘x13binary/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘x13binary’ version ‘0.0.4’
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Dirk Eddelbuettel <[email protected]>’
New submission

Non-FOSS package license (file LICENSE)
* 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 ‘x13binary’ can be installed ... OK
* checking installed package size ... NOTE
  installed size is  5.6Mb
  sub-directories of 1Mb or more:
    bin   3.5Mb
    lib   2.0Mb
* checking package 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 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 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 examples ... OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘simpleTest.R’
 OK
* checking PDF version of manual ... OK
* DONE

Status: 2 NOTEs
See
  ‘/Users/christoph/x13binary.Rcheck/00check.log’
for details.

R Under development (unstable) (2016-01-10 r69905) -- "Unsuffered Consequences"

Christophs-MacBook-Pro:~ christoph$ R CMD CHECK --as-cran x13binary_0.0.4.tar.gz 
* using log directory ‘/Users/christoph/x13binary.Rcheck’
* using R Under development (unstable) (2016-01-10 r69905)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* using option ‘--as-cran’
* checking for file ‘x13binary/DESCRIPTION’ ... OK
* checking extension type ... Package
* this is package ‘x13binary’ version ‘0.0.4’
* checking CRAN incoming feasibility ... NOTE
Maintainer: ‘Dirk Eddelbuettel <[email protected]>’

New submission

Non-FOSS package license (file LICENSE)
* 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 ‘x13binary’ can be installed ... OK
* checking installed package size ... NOTE
  installed size is  5.6Mb
  sub-directories of 1Mb or more:
    bin   3.5Mb
    lib   2.0Mb
* checking package 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 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 examples ... OK
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘simpleTest.R’
 OK
* checking PDF version of manual ... OK
* DONE

Status: 2 NOTEs
See
  ‘/Users/christoph/x13binary.Rcheck/00check.log’
for details.

Win-builder release

* using log directory 'd:/RCompile/CRANguest/R-release/x13binary.Rcheck'
* using R version 3.2.3 (2015-12-10)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* checking for file 'x13binary/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'x13binary' version '0.0.4'
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'Christoph Sax <[email protected]>'
New submission

Non-FOSS package license (file LICENSE)
* 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 'x13binary' can be installed ... OK
* checking installed package size ... OK
* checking package 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
* loading checks for arch 'i386'
** 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
* loading checks for arch 'x64'
** 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 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 examples ...
** running examples for arch 'i386' ... [1s] OK
** running examples for arch 'x64' ... [1s] OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
** running tests for arch 'i386' ... [2s] OK
  Running 'simpleTest.R' [1s]
** running tests for arch 'x64' ... [2s] OK
  Running 'simpleTest.R' [1s]
* checking PDF version of manual ... OK
* DONE
Status: 1 NOTE

Win-builder devel

* using log directory 'd:/RCompile/CRANguest/R-devel/x13binary.Rcheck'
* using R Under development (unstable) (2016-01-10 r69905)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* checking for file 'x13binary/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'x13binary' version '0.0.4'
* checking CRAN incoming feasibility ... NOTE
Maintainer: 'Christoph Sax <[email protected]>'

New submission

Non-FOSS package license (file LICENSE)
* 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 'x13binary' can be installed ... OK
* checking installed package size ... OK
* checking package 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
* loading checks for arch 'i386'
** 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
* loading checks for arch 'x64'
** 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 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 examples ...
** running examples for arch 'i386' ... ERROR
Running examples in 'x13binary-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: checkX13binary
> ### Title: Check if X-13ARIMA-SEATS Runs Properly
> ### Aliases: checkX13binary
> 
> ### ** Examples
> 
> checkX13binary()
Error in checkX13binary() : X-13 binary file not found
Execution halted
** running examples for arch 'x64' ... ERROR
Running examples in 'x13binary-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: checkX13binary
> ### Title: Check if X-13ARIMA-SEATS Runs Properly
> ### Aliases: checkX13binary
> 
> ### ** Examples
> 
> checkX13binary()
Error in checkX13binary() : X-13 binary file not found
Execution halted
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
** running tests for arch 'i386' ... ERROR
Running the tests in 'tests/simpleTest.R' failed.
Last 13 lines of output:
  Type 'license()' or 'licence()' for distribution details.

  R is a collaborative project with many contributors.
  Type 'contributors()' for more information and
  'citation()' on how to cite R or R packages in publications.

  Type 'demo()' for some demos, 'help()' for on-line help, or
  'help.start()' for an HTML browser interface to help.
  Type 'q()' to quit R.

  > x13binary::checkX13binary()
  Error in x13binary::checkX13binary() : X-13 binary file not found
  Execution halted
** running tests for arch 'x64' ... ERROR
Running the tests in 'tests/simpleTest.R' failed.
Last 13 lines of output:
  Type 'license()' or 'licence()' for distribution details.

  R is a collaborative project with many contributors.
  Type 'contributors()' for more information and
  'citation()' on how to cite R or R packages in publications.

  Type 'demo()' for some demos, 'help()' for on-line help, or
  'help.start()' for an HTML browser interface to help.
  Type 'q()' to quit R.

  > x13binary::checkX13binary()
  Error in x13binary::checkX13binary() : X-13 binary file not found
  Execution halted
* checking PDF version of manual ... OK
* DONE
Status: 4 ERRORs, 1 NOTE

Platform specific issue: Windows, with restrictive group policy

Not much we can do here, but on a corporate Windows laptop, I got with checkX13binary():

> checkX13binary()
Error in checkX13binary() : Call to X-13 hat non zero exit status
In addition: Warning message:
running command 'C:/Users/X60008592/R/win-library/3.2/x13binary/bin/x13ashtml.exe C:\Users\X60008~2\AppData\Local\Temp\RtmpqK8Cap/Testairline' had status 127 

The reason is only revealed when running it on the command line:

C:\>C:/Users/X60008592/R/win-library/3.2/x13binary/bin/x13ashtml.exe
This program is blocked by group policy. For more information, contact your syst
em administrator.

The solution (except of 'contact your system administrator') would be to install x13binary to a library where the user has the rights to run exe files. But to make these kind of problems easier to solve, a more verbose checkX13binary() would be useful. I made some adjustments, using shell instead of system. (The documentation recommends using system2, but I couldn't get it returning this error message, only shell did it.)

Now, with the new error message:

> checkX13binary()
Error in checkX13binary() : When running

  C:/Users/X60008592/R/win-library/3.2/x13binary/bin/x13ashtml.exe

Command Prompt returned the following message:

  This program is blocked by group policy. For more information, contact
  your system administrator.

In addition: Warning message:
running command 'C:\WINDOWS\system32\cmd.exe /c C:/Users/X60008592/R/win-library/3.2/x13binary/bin/x13ashtml.exe C:\Users\X60008~2\AppData\Local\Temp\RtmpqK8Cap/Testairline' had status 1 

Update supportedPlatforms()

The code in supportedPlatform.R needs an update. We need to rethink the final if() -- should that now be a test for an existing binary?

On macOS, 11.0.0 is now the official minimum at CRAN so that can likely be simplified too.

does not work on Windows when library is specified by a UNC path

> library(x13binary)
> checkX13binary(verbose = TRUE)
Error in checkX13binary(verbose = TRUE) : When running

  \\lon-vir-fil-005/homes$/Freyab/R/win-library/3.2/x13binary/bin/x13ashtml.exe

Command Prompt returned the following message:

  '\\lon-vir-fil-005\homes$\Freyab'
  CMD.EXE was started with the above path as the current directory.
  UNC paths are not supported.  Defaulting to Windows directory.
  The filename, directory name or volume label syntax is incorrect.

In addition: Warning message:
running command 'C:\Windows\system32\cmd.exe /c \\lon-vir-fil-005/homes$/Freyab/R/win-library/3.2/x13binary/bin/x13ashtml.exe C:\Users\freyab\AppData\Local\Temp\RtmpO6DzYV/Testairline' had status 1

Change Working directory when running on Windows

Hi,

I'm trying to complete installation of seasonal package on my corporate Windows PC and i have almost reached my target when i've got an error from R. When i run CheckX13() function it gives me error message of the following content:
Error: X-13 command line test failed. ...
Warning message: running command 'C:\windows\system32\cmd.exe /c "C:/Program Files.../x13ashtml.exe" C:\Users...\Appdata\Local\Temp\RtmpKQZ57n/x13/Testairline -s' had status 2
What is 'status 2' error and is there anything i can do about it?

OS-X tests

Tested on Snow Leopard today, without success, but not much a surprise. Just wanted to keep a list. The bold versions are tested on CRAN:

  • 10.11 El Capitan success
  • 10.10 Yosemite (June 2, 2014)
  • 10.9 Mavericks (June 10, 2013) success
  • 10.8 Mountain Lion (February 16, 2012)
  • 10.7 Lion (October 20, 2010)
  • 10.6 Snow Leopard (June 9, 2008) fail

updated: added Mavericks

NOTE detritus in the temp

@eddelbuettel, I have a problem with seasonal on CRAN M1mac, where it complains about detritus in temp directory:

https://www.stats.ox.ac.uk/pub/bdr/M1mac/seasonal.out

I saw that I indeed write to tempdir() without cleaning up, but I cannot recreate the the check result, even on an M1 mac. I tried with _R_CHECK_THINGS_IN_TEMP_DIR_=true but no success.

Now I see that x13binary has the same issue:

https://www.stats.ox.ac.uk/pub/bdr/M1mac/x13binary.out

* checking for detritus in the temp directory ... NOTE
Found the following files/directories:
  ‘Rtmp41Q’ ‘RtmpqmD’

Here, indeed, we write to tempdir() without cleanup:

file.copy(system.file("testdata", "Testairline.spc", package="x13binary"), tdir)

This would be easy to fix, but would that help? Also, do you have any idea how to recreate the NOTE on any system?

I got a CRAN ultimatum for seasonal, so this is probably something we need to solve. Thanks a lot!

Unable to use seas() in R Studio

Hi, I have been having this issue when I tried to use this seas() function. Refer below for a screenshot of the error message.
image
I tried to checkX13() and was returned with the following result.
image
May I know how to get this working? Thanks in advance.

appveyor Win CI

I just tried this out for seasonal, seems to work. I guess we could use this here as well.

Release 1.1.57

I just made one more commit (to master by accident, had meant to send a branch, my bad) but it is benign:

  • fills in the missing ChangeLog entries
  • rolls date and version in DESCRIPTION forward

@christophsax had hinted at point two via a ChangeLog entry but not actually changed the file. This is now done. If you're good with this I can roll it all up and send it to Vienna.

This should cover the Solaris error as we made configure a #!/bin/sh file (to @krlmlr 's chagrin 😉 ) and should also help with M1mac. I would expect them to come back to me via email as we have the non-standard 'unstaged install' but we're otherwise fine and this should go up cleanly.

So .. thumbs up?

More verbose msg (esp. on Windows)

Just as a reminder for myself:

Thought about setting intern = FALSE to the shell and system commands in checkX13binary, when verbose = TRUE (which we can set in the x13binary test but not in the routine test in seasonal).

I guess this would have revealed the working directory problem here #28 and perhaps could give us a hint for the oldrel issue #26.

todos

Moving the discussions to here.

I get a Mavericks laptop this Saturday so I would like to check out if can to this.

Shall I add documentation to and export the functions in the package? Could be useful to understand what the package does.

  • Mavericks tests (and built, if possible)
  • function documentation

Prepare Release 1.1.39

I guess we are more or less ready here.

  • seasonal now updated and on CRAN (1.6.1). And should work fine with x13binary.

  • rhub::check_for_cran runs fine (except for an rhub issue with pandoc on win).

  • manaully made some tests on win (R 3.3, 3.4), mac and ubuntu 32 and 64 (all 3.4) and made sure the correct version of the built is picked up.

  • Anything else?

install failed

> install.packages('x13binary')
Warning in install.packages :
 cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  unable to access index for repository http://ghrr.github.io/drat/bin/macosx/mavericks/contrib/3.1
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  cannot open: HTTP status was '404 Not Found'
Warning in install.packages :
  unable to access index for repository http://ghrr.github.io/drat/bin/macosx/mavericks/contrib/3.1

   package ‘x13binary’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘x13binary’ is not available (for R version 3.1.2)

error on CRAN oldrel

We have an error with 3.1.3 on CRAN.

Will try to find out why it happened and why we don't get a more meaningful error.

Perhaps we should figure this out before releasing the adjusted seasonal? It probably would affect many users.

macOS build issue on CRAN

Per https://www.r-project.org/nosvn/R.check/r-release-osx-x86_64/x13binary-00check.html:

* installing *source* package ‘x13binary’ ...
** package ‘x13binary’ successfully unpacked and MD5 sums checked
** using staged installation
x x13ashtml/
x x13ashtml/bin/
x x13ashtml/lib/
x x13ashtml/lib/libgcc_s.1.dylib
x x13ashtml/lib/libgfortran.3.dylib
x x13ashtml/lib/libquadmath.0.dylib
x x13ashtml/bin/x13ashtml
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
Error in slibs[are_shared] : invalid subscript type 'list'
* removing ‘/Volumes/SSD-Data/Builds/R-dev-web/QA/Simon/packages/el-capitan-x86_64/results/3.6/x13binary.Rcheck/x13binary’

Any idea?

test function?

Would it make sense to have a test function in the x13binary package? The function would run the AirPassengers.spc (which is shipped with X-13) and checks if something is produced.

Once it is on CRAN, we could make sure that it runs on all the CRAN test environments.

X-13 command line test run failed. To debug, try running the binary file directly in the terminal

Hi, I am trying to run the Seasonal package however when I checkX13(). It gives me below error.

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.
The system cannot execute the specified program.

Error : seasonal test run failed, with the message:
Error in system(paste(x13.bin, file, flags), intern = TRUE, ignore.stderr = FALSE) :

STDERR message(s) from external script:
'CreateProcess' failed to run 'C:\Program Files\Microsoft SQL Server\x13ashtml.exe C:\ProgramData\MSSQLSERVER\Temp-R\Appcontainer1\F5E10EE5-FBDA-4B2F-842A-FE9AA056AF90\Packages\51d1fc04ad4a4014ef0ad0ce48f02142-appcontainer1\AC\Temp\RtmpK4YM84\x13348c23543f13/iofile -n -s'

Error details:

  • X13_PATH: C:/Program Files/Microsoft SQL Server
  • Full binary path: "C:/Program Files/Microsoft SQL Server/x13ashtml.exe"
  • Platform: x86_64-w64-mingw32
  • R-Version: R version 3.5.2 (2018-12-20)
  • seasonal-Version: 1.7.0

Warning messages:
1: package 'x13binary' was built under R version 3.5.3
2: In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, :

STDERR message(s) from external script:
running command 'C:\Windows\system32\cmd.exe /c "C:/Program Files/Microsoft SQL Server/x13ashtml.exe" C:\ProgramData\MSSQLSERVER\Temp-R\Appcontainer1\F5E10EE5-FBDA-4B2F-842A-FE9AA056AF90\Packages\51d1fc04ad4a4014ef0ad0ce48f02142-appcontainer1\AC\Temp\RtmpK4YM84/x13/Testairline -s' had status 1
3: In system(cmd, intern = intern, wait = wait | intern, show.output.on.console = wait, :
running command 'C:\Windows\system32\cmd.exe /c "C:/Program Files/Microsoft SQL Server/x13ashtml.exe" C:\ProgramData\MSSQLSERVER\Temp-R\Appcontainer1\F5E10EE5-FBDA-4B2F-842A-FE9AA056AF90\Packages\51d1fc04ad4a4014ef0ad0ce48f02142-appcontainer1\AC\Temp\RtmpK4YM84\x13348c23543f13/iofile -n -s' had status 1

Also when the ran it on cmd it also gave me below error.
C:\Windows\system32\cmd.exe /c "C:/Program Files/Microsoft SQL Server/x13ashtml.exe" C:\ProgramData\MSSQLSERVER\Temp-R\Appcontainer1\F5E10EE5-FBDA-4B2F-842A-FE9AA056AF90\Packages\51d1fc04ad4a4014ef0ad0ce48f02142-appcontainer1\AC\Temp\RtmpK4YM84/x13/Testairline -s

X-13ARIMA-SEATS Seasonal Adjustment Program
Version Number 1.1 Build 39
Execution began Jun 15, 2020 00.36.27

Unable to open C:\ProgramData\MSSQLSERVER\Temp-R\Appcontainer1\F5E10EE5-FBDA-4B2F-842A-FE9AA056AF90\Packages\51d1fc04ad4a4014ef0ad0ce48f02142-appcontainer1\AC\Temp\RtmpK4YM84/x13/Testairline_log.html

Just for your info, I have shorten the path for x13ashtml.exe.

CRAN checks on macM1

Just for the record. We run it now on aarch64-apple-darwin20.0 (64-bit) and devel, but still no success in reproducing the NOTE. Also, the existing binaries seem to work just work fine.

CRAN checks

── R CMD check ─────────────────────────────────────────────────────────────────
─  using log directory ‘/Users/angelicambg/git/x13binary.Rcheck’
─  using R Under development (unstable) (2021-03-29 r80130)
─  using platform: aarch64-apple-darwin20.0 (64-bit)
─  using session charset: UTF-8
─  using options ‘--no-manual --as-cran’
✓  checking for file ‘x13binary/DESCRIPTION’
─  checking extension type ... Package
─  this is package ‘x13binary’ version ‘1.1.39-3’
✓  checking package namespace information ...
✓  checking package dependencies (3.9s)
✓  checking if this is a source package ...
✓  checking if there is a namespace
✓  checking for executable files ...
✓  checking for hidden files and directories
✓  checking for portable file names
✓  checking for sufficient/correct file permissions ...
✓  checking serialization versions
N  checking whether package ‘x13binary’ can be installed (3.1s)
   Found the following notes/warnings:
     Non-staged installation was used
   See ‘/Users/angelicambg/git/x13binary.Rcheck/00install.out’ for details.
N  checking installed package size ...
     installed size is  6.3Mb
     sub-directories of 1Mb or more:
       bin   4.1Mb
       lib   2.1Mb
✓  checking package directory ...
✓  checking for future file timestamps (29.8s)
✓  checking DESCRIPTION meta-information ...
W  checking top-level files ...
   A complete check needs the 'checkbashisms' script.
   See section ‘Configure and cleanup’ in the ‘Writing R Extensions’
   manual.
✓  checking for left-over files
✓  checking index information
✓  checking package subdirectories ...
✓  checking R files for non-ASCII characters ...
✓  checking R files for syntax errors ...
✓  checking whether the package can be loaded ...
✓  checking whether the package can be loaded with stated dependencies ...
✓  checking whether the package can be unloaded cleanly ...
✓  checking whether the namespace can be loaded with stated dependencies ...
✓  checking whether the namespace can be unloaded cleanly ...
✓  checking dependencies in R code ...
✓  checking S3 generic/method consistency ...
✓  checking replacement functions ...
✓  checking foreign function calls ...
✓  checking R code for possible problems (1.4s)
✓  checking Rd files ...
✓  checking Rd metadata ...
✓  checking Rd line widths ...
✓  checking Rd cross-references ...
✓  checking for missing documentation entries ...
✓  checking for code/documentation mismatches ...
✓  checking Rd \usage sections (343ms)
✓  checking Rd contents ...
✓  checking for unstated dependencies in examples ...
✓  checking line endings in shell scripts
✓  checking examples (1.5s)
✓  checking for unstated dependencies in ‘tests’ ...
─  checking tests ...
✓  Running ‘simpleTest.R’ (364ms)
✓  checking for non-standard things in the check directory (365ms)
✓  checking for detritus in the temp directory
   
   See
     ‘/Users/angelicambg/git/x13binary.Rcheck/00check.log’
   for details.
   
   
── R CMD check results ───────────────────────────────── x13binary 1.1.39-3 ────
Duration: 43.4s

> checking top-level files ... WARNING
  A complete check needs the 'checkbashisms' script.
  See section ‘Configure and cleanup’ in the ‘Writing R Extensions’
  manual.

> checking whether package ‘x13binary’ can be installed ... NOTE
  See below...

> checking installed package size ... NOTE
    installed size is  6.3Mb
    sub-directories of 1Mb or more:
      bin   4.1Mb
      lib   2.1Mb

0 errors ✓ | 1 warning x | 2 notes x
Error: R CMD check found WARNINGs
Execution halted

Exited with status 1.

Seasonal Session

> R.version
               _                                                 
platform       aarch64-apple-darwin20.0                          
arch           aarch64                                           
os             darwin20.0                                        
system         aarch64, darwin20.0                               
status         Under development (unstable)                      
major          4                                                 
minor          1.0                                               
year           2021                                              
month          03                                                
day            29                                                
svn rev        80130                                             
language       R                                                 
version.string R Under development (unstable) (2021-03-29 r80130)
nickname       Unsuffered Consequences                           
> library(seasonal)
> seas(AirPassengers)

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  

Thanks, @agelicabgm, for checking this.

CRAN release

  • Update v no to 1.1.60
  • Check with r-universe for four release architectures
    • Check with winbuilder r-release and/or r-devel
    • Check with macbuilder (macos, m1) r-release and/or r-devel
  • Check with r-devel
  • Submit

Do I miss anything?

License NOTE in reverse dependencies

In reverse dependencies, we get a NOTE about the license in x13binary. Perhaps nothing we can do about?

Package has a FOSS license but eventually depends on the following package which may restrict use:
  x13binary

Installation failed; can't access URL on isolated system

Don't suppose you can reconfigure the install to where Internet access isn't necessary?

* installing *source* package ‘x13binary’ ...
** package ‘x13binary’ successfully unpacked and MD5 sums checked
Error in download.file("https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml",  : 
  cannot open URL 'https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml'
In addition: Warning message:
In download.file("https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml",  :
  URL 'https://github.com/x13org/x13prebuilt/raw/master/v1.1.57/linux/64/x13ashtml': status was 'Couldn't connect to server'
Execution halted
ERROR: configuration failed for package ‘x13binary’

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.