Skip to content

Commit 1cbb4c0

Browse files
committed
more /usr/bin/env r conversions
1 parent fcf3caa commit 1cbb4c0

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2016-03-03 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/examples/FastLM/benchmarkLongley.r: Switched to '/usr/bin/env r'
4+
* inst/examples/FastLM/fastLMviaArmadillo.r: Idem
5+
* inst/examples/FastLM/fastLMviaGSL.r: Idem
6+
* inst/examples/FastLM/lmArmadillo.R: Idem
7+
* inst/examples/FastLM/lmGSL.R: Idem
8+
19
2016-02-27 Dirk Eddelbuettel <[email protected]>
210

311
* inst/examples/RcppInline/RcppInlineWithLibsExamples.r: Switched to

inst/examples/FastLM/benchmarkLongley.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/r -t
1+
#!/usr/bin/env r
22
#
33
# Comparison benchmark -- using old and small Longley data set
44
#

inst/examples/FastLM/fastLMviaArmadillo.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/r -t
1+
#!/usr/bin/env r
22
#
33
# A faster lm() replacement based on Armadillo
44
#

inst/examples/FastLM/fastLMviaGSL.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/r -t
1+
#!/usr/bin/env r
22
#
33
# A faster lm() replacement based on GNU GSL
44
#

inst/examples/FastLM/lmArmadillo.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ lmArmadillo <- function() {
4949
'
5050

5151
## turn into a function that R can call
52-
fun <- cfunction(signature(Ysexp="numeric", Xsexp="numeric"),
53-
src,
54-
includes="#include <armadillo>",
55-
Rcpp=TRUE,
56-
cppargs="-I/usr/include",
57-
libargs="-larmadillo -llapack")
52+
fun <- cxxfunction(signature(Ysexp="numeric", Xsexp="numeric"),
53+
src,
54+
includes="#include <armadillo>",
55+
plugin="RcppArmadillo")
5856
}
5957

inst/examples/FastLM/lmGSL.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,8 @@ lmGSL <- function() {
6262

6363
## turn into a function that R can call
6464
## compileargs redundant on Debian/Ubuntu as gsl headers are found anyway
65-
fun <- cfunction(signature(Ysexp="numeric", Xsexp="numeric"),
66-
src,
67-
includes="#include <gsl/gsl_multifit.h>",
68-
Rcpp=TRUE,
69-
cppargs="-I/usr/include",
70-
libargs="-lgsl -lgslcblas")
65+
fun <- cxxfunction(signature(Ysexp="numeric", Xsexp="numeric"),
66+
src,
67+
includes="#include <gsl/gsl_multifit.h>",
68+
plugin="RcppGSL")
7169
}

0 commit comments

Comments
 (0)