Skip to content

Commit d87bb9a

Browse files
author
luke
committed
Remove GetOption.
git-svn-id: https://svn.r-project.org/R/trunk@89056 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 6963bcf commit d87bb9a

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

src/include/Rinternals.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ SEXP Rf_getAttrib(SEXP, SEXP);
541541
SEXP Rf_GetArrayDimnames(SEXP);
542542
SEXP Rf_GetColNames(SEXP);
543543
void Rf_GetMatrixDimnames(SEXP, SEXP*, SEXP*, const char**, const char**);
544-
SEXP Rf_GetOption(SEXP, SEXP); /* pre-2.13.0 compatibility */
545544
SEXP Rf_GetOption1(SEXP);
546545
//int Rf_GetOptionDigits(void);
547546
int Rf_GetOptionWidth(void);
@@ -949,7 +948,6 @@ void R_orderVector1(int *indx, int n, SEXP x, Rboolean nalast, Rboolean de
949948
#define GetOption1 Rf_GetOption1
950949
#define GetOptionDigits Rf_GetOptionDigits
951950
#define GetOptionWidth Rf_GetOptionWidth
952-
#define GetOption Rf_GetOption
953951
#define GetRowNames Rf_GetRowNames
954952
#define gsetVar Rf_gsetVar
955953
#define inherits Rf_inherits

src/library/tools/R/sotools.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,7 @@ nonAPI <- c("chol_", "chol2inv_", "cg_", "ch_", "rg_",
697697
## non-API entry points":
698698
"EXTPTR_PROT", "EXTPTR_TAG", "EXTPTR_PTR",
699699
"OBJECT", "IS_S4_OBJECT",
700-
"Rf_GetOption", "R_lsInternal",
700+
"R_lsInternal",
701701
"REAL0", "COMPLEX0",
702702
"STRING_PTR", "DATAPTR", "STDVEC_DATAPTR",
703703
"Rf_allocSExp",
@@ -722,7 +722,7 @@ nonAPI <- c("chol_", "chol2inv_", "cg_", "ch_", "rg_",
722722
warnNonAPI <-
723723
c("REAL0", "COMPLEX0", "ddfind", "DDVAL", "ENSURE_NAMEDMAX", "INTERNAL",
724724
"PRSEEN", "SET_PRSEEN", "SYMVALUE", "R_nchar", "VECTOR_PTR", "R_tryWrap",
725-
"Rf_NonNullStringMatch", "Rf_isValidString", "Rf_GetOption", "SET_FRAME",
725+
"Rf_NonNullStringMatch", "Rf_isValidString", "SET_FRAME",
726726
"SET_HASHTAB", "SET_ENCLOS", "STDVEC_DATAPTR", "SET_S4_OBJECT",
727727
"UNSET_S4_OBJECT", "SET_NAMED", "R_lsInternal", "Rf_lazy_duplicate",
728728
"EXTPTR_PROT", "EXTPTR_PTR", "EXTPTR_TAG", "NAMED", "FRAME", "HASHTAB",

src/main/options.c

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* "scrap"
9494
9595
* R_NilValue is not a valid value for any option, but is used to signal a
96-
* missing option by FindTaggedItem/GetOption and higher-level functions.
96+
* missing option by FindTaggedItem/GetOption1 and higher-level functions.
9797
*/
9898

9999

@@ -125,12 +125,6 @@ static SEXP makeErrorCall(SEXP fun)
125125
return call;
126126
}
127127

128-
SEXP GetOption(SEXP tag, SEXP rho)
129-
{
130-
return GetOption1(tag);
131-
}
132-
133-
134128
SEXP GetOption1(SEXP tag)
135129
{
136130
SEXP opt = SYMVALUE(Options());
@@ -737,7 +731,7 @@ attribute_hidden SEXP do_options(SEXP call, SEXP op, SEXP args, SEXP rho)
737731
error(_("invalid value for '%s'"), CHAR(namei));
738732
SET_VECTOR_ELT(value, i, SetOption(tag, argi));
739733
}
740-
/* handle this here to avoid GetOption during error handling */
734+
/* handle this here to avoid GetOption1 during error handling */
741735
else if ( streql(CHAR(namei), "show.error.messages") ) {
742736
check_TRUE_FALSE(argi, CHAR(namei));
743737
R_ShowErrorMessages = LOGICAL(argi)[0];

0 commit comments

Comments
 (0)