R-beta: characters to Fortran
Jim Lindsey (jlindsey@luc.ac.be)
Fri, 5 Jun 1998 10:10:42 +0200 (MET DST)
From: Jim Lindsey <jlindsey@luc.ac.be>
Message-Id: <9806050810.AA05095@alpha.luc.ac.be>
Subject: R-beta: characters to Fortran
To: r-help@stat.math.ethz.ch (r-help)
Date: Fri, 5 Jun 1998 10:10:42 +0200 (MET DST)
I am having trouble sending character strings to Fortran. Even in a
simple program, I only receive gibberish. Something like this
test <- function() .Fortran("test",word="time")
(also tried using as.character()), with
subroutine test(word)
character*8 word
write(*,*)word
return
end
Is there a problem or am I missing something? dotcode.c seems to
indicate that it should work. Jim
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._