1 /* 2 * R : A Computer Language for Statistical Data Analysis 3 * Copyright (C) 2003-2019 The R Core Team. 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, a copy is available at 17 * https://www.R-project.org/Licenses/ 18 */ 19 20 #ifndef R_TOOLS_H 21 #define R_TOOLS_H 22 23 #include <R.h> 24 #include <Rinternals.h> 25 #ifdef ENABLE_NLS 26 #include <libintl.h> 27 #define _(String) dgettext ("tools", String) 28 #else 29 #define _(String) (String) 30 #endif 31 32 SEXP delim_match(SEXP x, SEXP delims); 33 SEXP dirchmod(SEXP dr, SEXP gwsxp); 34 SEXP Rmd5(SEXP files); 35 SEXP check_nonASCII(SEXP text, SEXP ignore_quotes); 36 SEXP check_nonASCII2(SEXP text); 37 SEXP doTabExpand(SEXP strings, SEXP starts); 38 SEXP ps_kill(SEXP pid, SEXP signal); 39 SEXP ps_sigs(SEXP); 40 SEXP ps_priority(SEXP pid, SEXP value); 41 SEXP codeFilesAppend(SEXP f1, SEXP f2); 42 SEXP getfmts(SEXP format); 43 SEXP startHTTPD(SEXP sIP, SEXP sPort); 44 SEXP stopHTTPD(void); 45 SEXP splitString(SEXP string, SEXP delims); 46 SEXP package_dependencies_scan(SEXP x); 47 48 SEXP parseLatex(SEXP call, SEXP op, SEXP args, SEXP env); 49 SEXP parseRd(SEXP call, SEXP op, SEXP args, SEXP env); 50 SEXP deparseRd(SEXP e, SEXP state); 51 52 #endif 53