SCM

[#6522] Tests Fail/Wont Run

Date:
2017-07-13 12:05
Priority:
3
State:
Open
Submitted by:
Will Kew (popher)
Assigned to:
Nobody (None)
Hardware:
None
Product:
Software A
Operating System:
None
Component:
None
Version:
None
Severity:
critical
Resolution:
None
URL:
Summary:
Tests Fail/Wont Run

Detailed description
Fresh install of BATMAN 1.2.1.10 from source on Windows 7. Attempts to run any of the tests fail. Console is as follows:

> library("batman", lib.loc="C:/Program Files/R/R-3.4.1/library")
Loading required package: doSNOW
Loading required package: foreach
Loading required package: iterators
Loading required package: snow
Loading required package: plotrix
> bm<-batman()

Running batman...
Number of burn-in iterations: 200
Number of post-burn-in iterations: 100

The template file used is
2: The user input template of multiplets in multi_data_user.csv file.

Loading multi_data_user.csv...
Percentage completed...
| | 0%Buffer size is adjusted to 120

Size of each spectrum is 682.
Size of metabolite list is 6.
of which 6 have resonances in/near the specified region and will be fit.
Constructing chain data structure...
time used is 4 seconds.
Running MCMC...
|=================================================================================================== | 67%
time used for burnin is 8 seconds.
|====================================================================================================================================================| 100%
time used is 12 seconds.
saving posteriors...

time elapsed
16.45
second.
Reading in saved data in folder
Error in x[j + 2L] != x[j + 3L] :
comparison of these types is not implemented
> sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252 LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C LC_TIME=English_United Kingdom.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] batman_1.2.1.10 plotrix_3.6-5 doSNOW_1.0.14 snow_0.4-2 iterators_1.0.8 foreach_1.4.4

loaded via a namespace (and not attached):
[1] compiler_3.4.1 tools_3.4.1 codetools_0.2-15

Comments:

Message  ↓
Date: 2017-07-13 12:16
Sender: Will Kew

Looks like this is an R > 3.4 related issue. R3.3.3 and 3.3.1 seem to work OK.

Could it be related to the following change for 3.4.0 :
https://cran.r-project.org/doc/manuals/r-release/NEWS.html

Arithmetic, logic (&, |) and comparison (aka ‘relational’, e.g., <, ==) operations with arrays now behave consistently, notably for arrays of length zero.

Arithmetic between length-1 arrays and longer non-arrays had silently dropped the array attributes and recycled. This now gives a warning and will signal an error in the future, as it has always for logic and comparison operations in these cases (e.g., compare matrix(1,1) + 2:3 and matrix(1,1) < 2:3).

Attached Files:

Changes

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business Powered By FusionForge