Rcpp Version 1.0.14
Loading...
Searching...
No Matches
message.h
Go to the documentation of this file.
1
2// message.h: Rcpp R/C++ interface class library -- Wrapper for base::message
3//
4// Copyright (C) 2021 Dirk Eddelbuettel
5//
6// This file is part of Rcpp.
7//
8// Rcpp is free software: you can redistribute it and/or modify it
9// under the terms of the GNU General Public License as published by
10// the Free Software Foundation, either version 2 of the License, or
11// (at your option) any later version.
12//
13// Rcpp is distributed in the hope that it will be useful, but
14// WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU General Public License for more details.
17//
18// You should have received a copy of the GNU General Public License
19// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
20
21#ifndef Rcpp_api_meat_message_h
22#define Rcpp_api_meat_message_h
23
24namespace Rcpp {
25
26 inline void message(SEXP s) {
27 Rcpp::Function msg = Rcpp::Environment::base_env()["message"];
28 msg(s);
29 }
30
31}
32
33#endif
Rcpp API.
Definition algo.h:28
Function_Impl< PreserveStorage > Function
Definition Function.h:131
void message(SEXP s)
Definition message.h:26
T as(SEXP x)
Definition as.h:151