Skip to content

Commit 19b5107

Browse files
committed
Typos
1 parent 25dce5d commit 19b5107

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

_posts/2023-02-05-Combining-R-with-Cpp-and-Fortran.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ A recent social-media
1212
[question](https://mastodon.social/@[email protected]/109770574777963511) by [James
1313
Curran](https://profiles.auckland.ac.nz/j-curran) inquired about the best, or recommended ways, to
1414
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)
1616
then [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
2020
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
2222
which are _pointers_: this can be dramatically faster and more efficient as object sizes increase.
2323

2424
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)
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
8383
combine R and Fortran via Rcpp.
8484

src/2023-02-05-Combining-R-with-Cpp-and-Fortran.Rmd

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ A recent social-media
1010
[question](https://mastodon.social/@[email protected]/109770574777963511) by [James
1111
Curran](https://profiles.auckland.ac.nz/j-curran) inquired about the best, or recommended ways, to
1212
extend R with Fortran code. Part of the question was whether the `.Fortran()` interface was still
13-
recommended or as there is 'conflicting advice' out there. [Dirk](https://dirk.eddelbuettel.com)
13+
recommended or not as there is 'conflicting advice' out there. [Dirk](https://dirk.eddelbuettel.com)
1414
then [followed up](https://mastodon.social/@eddelbuettel/109772801398410192) and pointed to the
1515
(stunning!) performance gains [reported by
1616
`glmnet`](https://cran.r-project.org/web/packages/glmnet/news/news.html) which switched from
1717
`.Fortran()` to a C++ interface using Rcpp and the (now much preferred) `.Call()` interface. One
1818
key reason behind the performance gains is that `.Fortran()` requires copies of all arguments, just
19-
like the (also effectively deprecated) `.C()` interface. Whereas `.Call()` works with `SEXP` object
19+
like the (also effectively deprecated) `.C()` interface. Whereas `.Call()` works with `SEXP` objects
2020
which are _pointers_: this can be dramatically faster and more efficient as object sizes increase.
2121

2222
A few years earlier, and for a related question, [JBrandon Duck-Mayr](https://jbduckmayr.com/) had written a _very comprehensive_
@@ -77,6 +77,6 @@ mixedlang::test_function(0:9)
7777
# [1] 0 1 4 9 16 25 36 49 64 81
7878
```
7979

80-
We hope the (recently updated) package at GitHub serves as starting point for other wanting to
80+
We hope the (recently updated) package at GitHub serves as starting point for others wanting to
8181
combine R and Fortran via Rcpp.
8282

0 commit comments

Comments
 (0)