Skip to content

Commit 1685a3b

Browse files
authored
convertDate: GetOption -> GetOption1 (#7406)
Use the API replacement for the non-API entry point. See #6849 for the context.
1 parent cba21fd commit 1685a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/idatetime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ SEXP convertDate(SEXP x, SEXP type)
145145
SEXP ans = PROTECT(allocVector(INTSXP, n));
146146
int *ansp = INTEGER(ans);
147147

148-
SEXP opt = GetOption(install("datatable.week"), R_NilValue);
148+
SEXP opt = GetOption1(install("datatable.week"));
149149
const char *mode = isString(opt) && length(opt) == 1 ? CHAR(STRING_ELT(opt, 0)) : "default";
150150

151151
bool use_sequential = !strcmp(mode, "sequential");

0 commit comments

Comments
 (0)