From Zwang at ccmckids.org  Mon Nov 21 03:09:27 2011
From: Zwang at ccmckids.org (Zhu Wang)
Date: Sun, 20 Nov 2011 21:09:27 -0500
Subject: [Rd] Fortran runtime error with package cts on CRAN/Mac
Message-ID: <4EC96C87020000DD00022CC4@gwmail3.harthosp.org>

Hello,
 
As the author of package cts, I hope somebody on this list can kindly help (perhaps off-list)
to resolve the build/check issue with package cts for Mac. The error occurred on Mac machines only: 
http://cran.r-project.org/web/checks/check_results_cts.html.
 
Here is the error message:
 
At line 10 of file machine.f
Fortran runtime error: Range error during floating point read 
 
The source file machine.f is to read machine dependent parameters stored in machine.txt, which was saved from R function .Machine. For convenience, the source file machine.f is listed below, along with machine.txt from a non Mac system (the last line NA was added for a test version of cts).
 
CCC READ MACHINE INFORMATION SAVED WITH R CODE
      SUBROUTINE MACHINE(EPS, BASE, T, EMIN, RMIN)
      DOUBLE PRECISION EPS, RMIN
      INTEGER BASE, T, EMIN
      OPEN(UNIT=3,FILE='machine.txt',STATUS='OLD')
      READ(3,*)EPS      
      READ(3,*)BASE
      READ(3,*)T
      READ(3,*)EMIN
      READ(3,*)RMIN
      CLOSE(UNIT=3)
      RETURN
      END
 
machine.txt:
 
1.11022302462516e-16
2
53
-1022
2.2250738585072e-308
NA
 
Another question is whether there is a way to submit a test to just one platform. I know this can be done for Windows, but I'm not sure for Mac. 
 
Thanks in advance.
 
Zhu Wang
 
Department of Research
Connecticut Children's Medical Center
Hartford, CT 06106
 
 


[Rd] Fortran runtime error with package cts on CRAN/Mac
Zhu Wang