Skip to content

Commit 3985bc5

Browse files
author
ripley
committed
unify error messages
git-svn-id: https://svn.r-project.org/R/trunk@87853 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent f404ec5 commit 3985bc5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/coerce.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,15 +1829,15 @@ Rboolean asRbool(SEXP x, SEXP call)
18291829
{
18301830
int ans = asLogical2(x, 1, call);
18311831
if (ans == NA_LOGICAL)
1832-
errorcall(call, _("NA in coercion to Rboolean"));
1832+
errorcall(call, _("NA in coercion to boolean"));
18331833
return (Rboolean) ans;
18341834
}
18351835

18361836
bool asBool2(SEXP x, SEXP call)
18371837
{
18381838
int ans = asLogical2(x, 1, call);
18391839
if (ans == NA_LOGICAL)
1840-
errorcall(call, _("NA in coercion to bool"));
1840+
errorcall(call, _("NA in coercion to boolean"));
18411841
return (bool) ans;
18421842
}
18431843

@@ -1846,15 +1846,15 @@ Rboolean asRboolean(SEXP x)
18461846
{
18471847
int ans = asLogical2(x, 1, R_NilValue);
18481848
if (ans == NA_LOGICAL)
1849-
error(_("NA in coercion to Rboolean"));
1849+
error(_("NA in coercion to boolean"));
18501850
return (Rboolean) ans;
18511851
}
18521852

18531853
bool asBool(SEXP x)
18541854
{
18551855
int ans = asLogical2(x, 1, R_NilValue);
18561856
if (ans == NA_LOGICAL)
1857-
error(_("NA in coercion to bool"));
1857+
error(_("NA in coercion to boolean"));
18581858
return (bool) ans;
18591859
}
18601860

0 commit comments

Comments
 (0)