Open GoogleCodeExporter opened 8 years ago
This is good idea, However it could also be achieved without a seperate Fortran
function, using a single Rcall function:
Case 1: Specific vars
ok=Rcall(vars=(/Rput("varname",varname)/),cmd=(/"rm(list=varname)","rm(varname)"
/))
Case 2: All vars
ok=Reval('rm(list=ls())')
Mark
Original comment by mark.th...@gmail.com
on 12 Jun 2011 at 5:03
Hi Mark,
Yes, but the question is do you want to have a mixture of R and Fortran
throughout the code, or try to wrap them so that the Rputs etc are kept
(lagely) separate. My own preference is for the latter, especially for common
tasks.
d
Original comment by dmitri.k...@gmail.com
on 13 Jun 2011 at 9:38
RFortran r700 adds the utility function 'RFortran_clearVars' to
'RFortran_RFuncs' designed by D for this purpose.
I recommend in the next release of RFortran this function be generalized to
handle scalar arguments, and be added to the core function module.
This ensures it is possible to use RFortran without adding any R code into the
Fortran code (Rput -> execute scripts via Rcall -> Rget -> Rclear).
cheers,
d
Original comment by dmitri.k...@gmail.com
on 17 Jul 2011 at 9:29
Original issue reported on code.google.com by
dmitri.k...@gmail.com
on 12 Jun 2011 at 12:12