Hi,
I used to redirect std::cout to Rcpp::Rcout back when I still had Rcout in
Rcpp11. e.g.
https://github.com/Rcpp11/Rcpp11/blob/22cc410ea87a2668e547acf6510d07ca812dfca8/src/Rcpp11_init.cpp
Which was basically leveraging std::cout.rdbuf.
A variant of
http://stackoverflow.com/questions/10150
find . -name "*.cpp" -exec sed -i 's/std::cout/Rcpp::Rcout/g' {} \;
This, or some variant, should get you there.
I suggest version controlling your files before executing, just in case ;)
Kevin
On May 23, 2014 7:22 PM, "Dirk Eddelbuettel" wrote:
>
> On 23 May 2014 at 21:22, Qiang Kou wrote:
>
On 23 May 2014 at 21:22, Qiang Kou wrote:
| I am using Rcpp to integrate an available C++ library with R.
|
| Since the std::cout and std::cerr are not permitted when uploading to CRAN, I
| have to modify files manually. It will be somewhat laborious if the library
|
| Does anyone have any idea h
Hi, dear all,
I am using Rcpp to integrate an available C++ library with R.
Since the std::cout and std::cerr are not permitted when uploading to CRAN,
I have to modify files manually. It will be somewhat laborious if the
library
Does anyone have any idea how can I do that automatically?
Thank
Hi, Romain,
Your suggestion works pretty well. I appreciate your valuable help !
Chaomei
On Thu, May 22, 2014 at 4:18 PM, Romain François
wrote:
> Hello,
>
> From what I understand of ArrayRCP, having read the documentation for a
> few minutes. (
> http://trilinos.sandia.gov/packages/docs/r9.
I have been struggling with the following:
file test4.R
library(Rcpp)
library(RcppArmadillo)
MyClass <- setRefClass("MyClass",
fields=c(
A="numeric"
),
methods=c(