Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

11 results for “from:Watal M. Iwasaki”

[Rcpp-devel] Export only C function symbols?
Watal M. Iwasaki · Feb 3, 2019 · rcpp-devel

Hi all, Adding `[[Rcpp::export]]` tag to a package function leads to the following outcomes: 1. Definition of "RcppExport SEXP _mypkg_myfun()" in RcppExports.cpp (hence in dll) 2. Definition of "myfun() {.Call(`_mypkg_myfun`)}" in RcppExports.R It is...

[Rcpp-devel] How to handle std::cout/std::cerr in shared libraries
Watal M. Iwasaki · Oct 26, 2018 · rcpp-devel

Hi all, I have been working on an R interface package to a shared library written in C++. It works almost perfectly, but the output to std::cout is not shown on R console (on Linux). Of course Rcpp::Rcout...

[Rcpp-devel] Export only C function symbols?
Watal M. Iwasaki · Feb 4, 2019 · rcpp-devel

Dear I?aki, The registration is fine. Besides that, Rcpp creates RcppExports.R and defines wrapper R functions to .Call registered functions. My question was how to prevent it. Post-processing RcppExports.R is a possible workaround suggested by Dirk...

[Rcpp-devel] Strange behavior with boost::program_options
Watal M. Iwasaki · Jul 5, 2016 · rcpp-devel

Hi all, I have been trying to make an R function to call my C++ simulation program in this way: ```c++ // [[Rcpp::plugins(cpp14)]] #include <Rcpp.h> #include <mylib.hpp> // [[Rcpp::export]] std::string run_simulation(Rcpp::CharacterVector args=Rcpp...

[Rcpp-devel] How to handle std::cout/std::cerr in shared libraries
Watal M. Iwasaki · Oct 26, 2018 · rcpp-devel

Dear Dirk, Is it possible for Rcpp to do some pre-execution hook before user code? For example, if Rcpp system can hijack the std::cout buffer by executing `std::cout.rdbuf(Rcpp::Rcout.rdbuf())` automatically, then Rcpp users (and...

[Rcpp-devel] Export only C function symbols?
Watal M. Iwasaki · Feb 4, 2019 · rcpp-devel

Dear Dirk, Thank you for the prompt answer. Currently all the C++ functions with [[Rcpp::export]] tag are exposed to me by `devtools::load_all()` in the dev process. But some of them are only useful in other functions and...

[Rcpp-devel] Export only C function symbols?
Watal M. Iwasaki · Feb 4, 2019 · rcpp-devel

Dear I?aki, Thanks for the comments. But I know the switch you mentioned. The levels I was talking are within the unexported functions. Here are my imaginary levels: 1. Listed in NAMESPACE; always visible 2. Not listed in NAMESPACE...

[Rcpp-devel] Strange behavior with boost::program_options
Watal M. Iwasaki · Jul 6, 2016 · rcpp-devel

Thank you for the quick and kind reply, Kevin! You are right. I confirmed that the program option object is defined as a local variable in mylib::Simulation constructor, and is destructed correctly. But I found that the object is...

[Rcpp-devel] How to handle std::cout/std::cerr in shared libraries
Watal M. Iwasaki · Oct 26, 2018 · rcpp-devel

Yes, escaping from the check seems difficult. I have created a quick PR on this for further discussion. Watal On Sat, Oct 27, 2018 at 2:13 AM Dirk Eddelbuettel <edd at debian.org> wrote: > > Hi Watal, > > Thanks for being...

[Rcpp-devel] How to handle std::cout/std::cerr in shared libraries
Watal M. Iwasaki · Oct 26, 2018 · rcpp-devel

Dear Dirk, Thank you for the prompt response. Good to know there is no easy way. I have made up my mind to change the library code as you suggested. But I don't like preprocessor macro; therefore, the problem...

[Rcpp-devel] How to handle std::cout/std::cerr in shared libraries
Watal M. Iwasaki · Oct 26, 2018 · rcpp-devel

Dear Dirk, Sorry for my poor explanation. I have read `inst/include/Rcpp/iostream/Rstreambuf.h` and think I understand the role of Rcpp::Rcout, but failed to explain my point. By "users [...] can just stick to std::cout", I...

Can't find what you're looking for? Try searching with Google .