Skip to content

Commit 3a4745a

Browse files
author
luke
committed
Add R_curErrorBuf to the experimental API.
git-svn-id: https://svn.r-project.org/R/trunk@89040 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 61c6b61 commit 3a4745a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

doc/manual/R-exts.texi

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13593,10 +13593,10 @@ is modified it may suffice to call @code{Rf_shallow_duplicate}.
1359313593
@comment FIXME need a separate section on attributes
1359413594
At times it may be necessary to copy attributes from one object to
1359513595
another. This can be done using @code{DUPLICATE_ATTRIB} or
13596-
@code{SHALLOW_DUPLICATE_ATTRIB}
13596+
@code{SHALLOW_DUPLICATE_ATTRIB}.
1359713597
@apifun DUPLICATE_ATTRIB
1359813598
@apifun SHALLOW_DUPLICATE_ATTRIB
13599-
@code{ANY_ATTRIB} checks whether there are any attributes and
13599+
@code{ANY_ATTRIB} checks whether there are any attributes, and
1360013600
@code{CLEAR_ATTRIB} removes all attributes.
1360113601
@apifun ANY_ATTRIB
1360213602
@apifun CLEAR_ATTRIB
@@ -17050,7 +17050,7 @@ functions built on @code{R_ToplevelExec} are @code{R_tryEval} and
1705017050
@code{R_tryEvalSilent}.
1705117051
@example
1705217052
SEXP R_tryEval(SEXP e, SEXP env, int *ErrorOccurred);
17053-
SEXP R_tryEvalSilent(SEXP e, SEXP env, int *ErrorOccurred)
17053+
SEXP R_tryEvalSilent(SEXP e, SEXP env, int *ErrorOccurred);
1705417054
@end example
1705517055
@apifun R_tryEvalSilent
1705617056
@apifun R_tryEval
@@ -17064,6 +17064,14 @@ option. For example, finalizers are run in a separate top level
1706417064
context. The other functions mentioned in this section will usually be
1706517065
more appropriate choices.
1706617066

17067+
Currently, if these evaluations produce an error that is handled by the
17068+
default handler, then the error message will be stored in a buffer that
17069+
can be accessed with @code{R_curErrorBuf}.
17070+
@example
17071+
const char *R_curErrorBuf(void);
17072+
@end example
17073+
@eapifun R_curErrorBuf
17074+
This design could change in the future.
1706717075

1706817076
@node Allowing interrupts
1706917077
@section Allowing interrupts

src/library/tools/R/sotools.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,6 @@ nonAPI <- c("chol_", "chol2inv_", "cg_", "ch_", "rg_",
675675
## non-API, declared in Rinternals.h
676676
"SET_OBJECT", ## no longer used in an example in R-exts
677677
"SET_S4_OBJECT", "UNSET_S4_OBJECT",
678-
"R_curErrorBuf",
679678
"SETLENGTH", "SET_TRUELENGTH", "SETLEVELS",
680679
"SET_ENVFLAGS", "SET_FRAME", "SET_ENCLOS", "SET_HASHTAB",
681680
"SET_PRENV", "SET_PRVALUE", "SET_PRCODE", "STDVEC_DATAPTR",

0 commit comments

Comments
 (0)