On 14 September 2017 at 15:56, Stefan McKinnon Høj-Edwards wrote:
| Oh. I was under the impression the risk of interference was only for stdout
| and stderr.
| 
| I suspect the affected Fortran subroutines should be re-written in R or C.
| Is writing to files with Rcpp affected by the interference?

As you mention Rcpp: we adhere to the manual and redirect to the C facilities
of the R API.  Ie in

    Rcpp::Rcout << "Hello, world\n";

it only looks like streams. In reality, a very clever trick sent to us by
Jelmer many many moons ago turns into a call to Rprintf().
    
| Or would it be feasible to have the Fortran subroutine call a C subroutine
| for writing to files?

Possibly. It's all about avoiding Kurt's regexps :)

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to