Rcpp Version 1.0.14
Loading...
Searching...
No Matches
print.h
Go to the documentation of this file.
1//
2// Copyright (C) 2015 - 2023 Dirk Eddelbuettel
3//
4// This file is part of Rcpp.
5//
6// Rcpp is free software: you can redistribute it and/or modify it
7// under the terms of the GNU General Public License as published by
8// the Free Software Foundation, either version 2 of the License, or
9// (at your option) any later version.
10//
11// Rcpp is distributed in the hope that it will be useful, but
12// WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14// GNU General Public License for more details.
15//
16// You should have received a copy of the GNU General Public License
17// along with Rcpp. If not, see <http://www.gnu.org/licenses/>.
18
19#ifndef RCPP_PRINT_H
20#define RCPP_PRINT_H
21
22namespace Rcpp {
23
24inline void print(SEXP s) {
25 Rf_PrintValue(s); // defined in Rinternals.h
26}
27
28inline void warningcall(SEXP call, const std::string & s) {
29 Rf_warningcall(call, "%s", s.c_str());
30}
31
32// also note that warning() is defined in file exceptions.h
33
34}
35
36#endif
Rcpp API.
Definition algo.h:28
void warningcall(SEXP call, const std::string &s)
Definition print.h:28
void print(SEXP s)
Definition print.h:24
T as(SEXP x)
Definition as.h:151