We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df4b49 commit 46e796bCopy full SHA for 46e796b
src/appl/uncmin.c
@@ -27,6 +27,7 @@
27
28
/*--- The Dennis + Schnabel Minimizer -- used by R's nlm() ---*/
29
30
+#define USE_BASE_R_SUPPORT
31
#include <math.h>
32
#include <float.h> /* DBL_MAX */
33
#include <R_ext/Boolean.h>
src/include/Defn.h
@@ -23,6 +23,9 @@
23
#ifndef DEFN_H_
24
#define DEFN_H_
25
26
+// enable some non-API declarations in R_ext includes
+
/* seems unused */
#define COUNTING
src/include/R_ext/Applic.h
@@ -121,9 +121,11 @@ void F77_NAME(dqrls)(double *x, int *n, int *p, double *y, int *ny,
121
/* appl/pretty.c: for use in engine.c and util.c
122
FIXME: move out of this header
123
*/
124
+#ifdef USE_BASE_R_SUPPORT
125
double R_pretty(double *lo, double *up, int *ndiv, int min_n,
126
double shrink_sml, const double high_u_fact[],
127
int eps_correction, int return_bounds);
128
+#endif
129
130
/* For use in package stats */
131
@@ -135,9 +137,11 @@ typedef void (*fcn_p)(int, double *, double *, void *);
135
137
/* type of pointer to the hessian functions */
136
138
typedef void (*d2fcn_p)(int, int, double *, double *, void *);
139
140
141
void fdhess(int n, double *x, double fval, fcn_p fun, void *state,
142
double *h, int nfd, double *step, double *f, int ndigit,
143
double *typx);
144
145
146
/* Also used in packages nlme, pcaPP */
147
void optif9(int nr, int n, double *x,
src/include/R_ext/Error.h
@@ -58,13 +58,17 @@ extern "C" {
58
[[noreturn]] void Rf_error(const char *, ...) R_PRINTF_FORMAT(1, 2);
59
60
[[noreturn]] void UNIMPLEMENTED(const char *);
61
62
[[noreturn]] void WrongArgCount(const char *);
63
64
#else
65
NORET void Rf_error(const char *, ...) R_PRINTF_FORMAT(1, 2);
66
67
NORET void UNIMPLEMENTED(const char *);
68
69
NORET void WrongArgCount(const char *);
70
#endif
71
72
73
void Rf_warning(const char *, ...) R_PRINTF_FORMAT(1,2);
74
src/include/R_ext/Memory.h
@@ -45,7 +45,9 @@ void* vmaxget(void); // not remapped
45
void vmaxset(const void *); // not re-mapped
46
47
void R_gc(void);
48
49
int R_gc_running(void);
50
51
52
char* R_alloc(R_SIZE_T, int);
53
long double *R_allocLD(R_SIZE_T nelem);
src/include/R_ext/Rdynload.h
@@ -86,7 +86,9 @@ Rboolean R_useDynamicSymbols(DllInfo *info, Rboolean value);
86
Rboolean R_forceSymbols(DllInfo *info, Rboolean value);
87
88
/* Not API */
89
90
DllInfo *R_getDllInfo(const char *name);
91
92
93
/* To be used by applications embedding R to register their symbols
94
that are not related to any dynamic module/
src/include/R_ext/eventloop.h
@@ -75,13 +75,16 @@ typedef struct _InputHandler {
75
extern InputHandler *addInputHandler(InputHandler *handlers, int fd, InputHandlerProc handler, int activity);
76
extern InputHandler *getInputHandler(InputHandler *handlers, int fd);
77
extern int removeInputHandler(InputHandler **handlers, InputHandler *it);
78
79
80
extern InputHandler *getSelectedHandler(InputHandler *handlers, fd_set *mask);
81
extern fd_set *R_checkActivity(int usec, int ignore_stdin);
82
extern void R_runHandlers(InputHandler *handlers, fd_set *mask);
83
84
extern int R_SelectEx(int n, fd_set *readfds, fd_set *writefds,
85
fd_set *exceptfds, struct timeval *timeout,
void (*intr)(void));
#ifdef __SYSTEM__
#ifndef __cplusplus /* Would get duplicate conflicting symbols*/
src/include/Rmath.h0.in
@@ -540,7 +540,7 @@ double rlogis(double, double);
540
double dnbeta(double, double, double, double, int);
541
double pnbeta(double, double, double, double, int, int);
542
double qnbeta(double, double, double, double, int, int);
543
-double rnbeta(double, double, double);
+//double rnbeta(double, double, double);
544
545
/* Non-central F Distribution */
546
src/modules/internet/Rsock.c
@@ -184,6 +184,7 @@ void in_Rsockwrite(int *sockp, char **buf, int *start, int *end, int *len)
184
struct hostent *R_gethostbyname(const char *name);
185
186
#ifdef Unix
187
188
#include <R_ext/eventloop.h>
189
190
/* modified from src/unix/sys-std.c */
0 commit comments