@@ -12,13 +12,13 @@ A recent social-media
1212[ question] ( https://mastodon.social/@ProfJamesCurran@mastodon.nz/109770574777963511 ) by [ James
1313Curran] ( https://profiles.auckland.ac.nz/j-curran ) inquired about the best, or recommended ways, to
1414extend R with Fortran code. Part of the question was whether the ` .Fortran() ` interface was still
15- recommended or as there is 'conflicting advice' out there. [ Dirk] ( https://dirk.eddelbuettel.com )
15+ recommended or not as there is 'conflicting advice' out there. [ Dirk] ( https://dirk.eddelbuettel.com )
1616then [ followed up] ( https://mastodon.social/@eddelbuettel/109772801398410192 ) and pointed to the
1717(stunning!) performance gains [ reported by
1818` glmnet ` ] ( https://cran.r-project.org/web/packages/glmnet/news/news.html ) which switched from
1919` .Fortran() ` to a C++ interface using Rcpp and the (now much preferred) ` .Call() ` interface. One
2020key reason behind the performance gains is that ` .Fortran() ` requires copies of all arguments, just
21- like the (also effectively deprecated) ` .C() ` interface. Whereas ` .Call() ` works with ` SEXP ` object
21+ like the (also effectively deprecated) ` .C() ` interface. Whereas ` .Call() ` works with ` SEXP ` objects
2222which are _ pointers_ : this can be dramatically faster and more efficient as object sizes increase.
2323
2424A few years earlier, and for a related question, [ JBrandon Duck-Mayr] ( https://jbduckmayr.com/ ) had written a _ very comprehensive_
@@ -79,6 +79,6 @@ mixedlang::test_function(0:9)
7979# [1] 0 1 4 9 16 25 36 49 64 81
8080```
8181
82- We hope the (recently updated) package at GitHub serves as starting point for other wanting to
82+ We hope the (recently updated) package at GitHub serves as starting point for others wanting to
8383combine R and Fortran via Rcpp.
8484
0 commit comments