[Rcpp-commits] r1422 - pkg/Rcpp/inst/examples/functionCallback scripts
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri Jun 4 16:43:14 CEST 2010
Author: romain
Date: 2010-06-04 16:43:13 +0200 (Fri, 04 Jun 2010)
New Revision: 1422
Modified:
pkg/Rcpp/inst/examples/functionCallback/buildAndRun.sh
scripts/runExamples.sh
Log:
more use of Rscript instead of littler
Modified: pkg/Rcpp/inst/examples/functionCallback/buildAndRun.sh
===================================================================
--- pkg/Rcpp/inst/examples/functionCallback/buildAndRun.sh 2010-06-04 14:36:12 UTC (rev 1421)
+++ pkg/Rcpp/inst/examples/functionCallback/buildAndRun.sh 2010-06-04 14:43:13 UTC (rev 1422)
@@ -1,8 +1,8 @@
#!/bin/bash
# we have to let R know where the Rcpp header and library are
-export PKG_CPPFLAGS=`r -e "Rcpp:::CxxFlags()"`
-export PKG_LIBS=`r -e "Rcpp:::LdFlags()"`
+export PKG_CPPFLAGS=`Rscript -e "Rcpp:::CxxFlags()"`
+export PKG_LIBS=`Rscript -e "Rcpp:::LdFlags()"`
# build the shared library
R CMD SHLIB RcppFunctionCallExample.cpp
Modified: scripts/runExamples.sh
===================================================================
--- scripts/runExamples.sh 2010-06-04 14:36:12 UTC (rev 1421)
+++ scripts/runExamples.sh 2010-06-04 14:43:13 UTC (rev 1422)
@@ -10,26 +10,26 @@
function runFastLM {
cd Rcpp/inst/examples/FastLM
- ./benchmark.r
+ Rscript ./benchmark.r
cd -
}
function runFunctionCallback {
cd Rcpp/inst/examples/functionCallback
./buildAndRun.sh
- ./newApiExample.r
+ Rscript ./newApiExample.r
cd -
}
function runRcppInline {
cd Rcpp/inst/examples/RcppInline
- ./external_pointer.r
- ./RcppInlineExample.r
- ./RcppInlineWithLibsExamples.r
- ./RcppSimpleExample.r
- ./RcppSimpleTests.r
- ./RObject.r
- ./UncaughtExceptions.r
+ Rscript ./external_pointer.r
+ Rscript ./RcppInlineExample.r
+ Rscript ./RcppInlineWithLibsExamples.r
+ Rscript ./RcppSimpleExample.r
+ Rscript ./RcppSimpleTests.r
+ Rscript ./RObject.r
+ Rscript ./UncaughtExceptions.r
cd -
}
More information about the Rcpp-commits
mailing list