Created
June 24, 2015 19:34
-
-
Save kbroman/8ea364ffe12ca24b5113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Rcpp.h> | |
using namespace Rcpp; | |
// [[Rcpp::export]] | |
void r_message(std::string text) | |
{ | |
Rcpp::Function msg("message"); | |
msg(text); | |
} | |
/*** R | |
r_message("not suppressed") | |
suppressMessages(r_message("suppressed")) | |
message("not suppressed") | |
suppressMessages(message("suppressed")) | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Comments on twitter: