@@ -12,13 +12,13 @@ A recent social-media
12
12
[ question
] ( https://mastodon.social/@[email protected] /109770574777963511 ) by
[ James
13
13
Curran] ( https://profiles.auckland.ac.nz/j-curran ) inquired about the best, or recommended ways, to
14
14
extend 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 )
16
16
then [ followed up] ( https://mastodon.social/@eddelbuettel/109772801398410192 ) and pointed to the
17
17
(stunning!) performance gains [ reported by
18
18
` glmnet ` ] ( https://cran.r-project.org/web/packages/glmnet/news/news.html ) which switched from
19
19
` .Fortran() ` to a C++ interface using Rcpp and the (now much preferred) ` .Call() ` interface. One
20
20
key 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
22
22
which are _ pointers_ : this can be dramatically faster and more efficient as object sizes increase.
23
23
24
24
A 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)
79
79
# [1] 0 1 4 9 16 25 36 49 64 81
80
80
```
81
81
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
83
83
combine R and Fortran via Rcpp.
84
84
0 commit comments