From mtalbert at usgs.gov  Mon Mar 17 21:30:21 2014
From: mtalbert at usgs.gov (Marian Talbert)
Date: Mon, 17 Mar 2014 13:30:21 -0700 (PDT)
Subject: [Rd] CRAN rejects package because of write statement in Fortran
In-Reply-To: <1389213790688-4683287.post@n4.nabble.com>
References: <1389213790688-4683287.post@n4.nabble.com>
Message-ID: <1395088221378-4686997.post@n4.nabble.com>

So the best solution I've had just yet for this problem is to convert numeric
to character in C and bypass the Fortran "Write" in that way.  Unfortunately
my C is a bit rusty and I'm having trouble getting this to work.  I image in
the C it should look something like:
void F77_SUB(converti)(char *ch_Result, int
i_Int){*ch_Result=sprintf("%d",*a); }

and in the Fortran something like 
call converti(ch_Result,i_Int)

but this is clearly not right any help would be greatly appreciated. 




--
View this message in context: http://r.789695.n4.nabble.com/CRAN-rejects-package-because-of-write-statement-in-Fortran-tp4683287p4686997.html
Sent from the R devel mailing list archive at Nabble.com.



[Rd] CRAN rejects package because of write statement in Fortran
Marian Talbert