Re: R-beta: characters to Fortran

Ross Ihaka (ihaka@stat.auckland.ac.nz)
Fri, 5 Jun 1998 20:35:45 +1200 (NZST)


Date: Fri, 5 Jun 1998 20:35:45 +1200 (NZST)
From: Ross Ihaka <ihaka@stat.auckland.ac.nz>
Message-Id: <199806050835.UAA22505@stat1.stat.auckland.ac.nz>
To: jlindsey@luc.ac.be, r-help@stat.math.ethz.ch
Subject: Re: R-beta: characters to Fortran

Remember that everything in R is a vector.  You don't pass a single
character string, but rather an array of strings of length 1.

You also probably need to be pretty careful about what you do with
character strings.  Compilers can pass string lengths in some pretty
tricky ways (extra undocumented aguments etc).  This can create
problems.

As a general rule I would recommend C for string handling stuff.
Alternatively, encode the string as an integer in the interpreted
code which calls the fortran.

Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._