hodgesse1 / rfortran

Automatically exported from code.google.com/p/rfortran
0 stars 0 forks source link

Warning: R creates double variables by default (trap for R beginners) #86

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When typing 'k=1' in R, this makes k a variable of type double.

Attempting to use Rget to read this into a Fortran integer then fails, and can 
appear opaque to a Fortran user unfamiliar with R conventions.

I would recommend making some kind of general message on this, or maybe a hint 
when Rget reports an error (eg, "Hint: are you aware that R variables are 
double by default?"), to reduce spurious and frustrating debugging time.

Ben (as well as D)

Original issue reported on code.google.com by dmitri.k...@gmail.com on 20 Dec 2010 at 4:08

GoogleCodeExporter commented 8 years ago
This is an R issue, rather than a RFortran issue. 

It would be difficult to document all the quirks of R in the error messages. 

Hence, this problem has been added to the FAQ. 

Original comment by mark.th...@gmail.com on 14 Feb 2011 at 11:09