File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ SEXP validate_knlist_node_c(SEXP x)
77 SEXP names = getAttrib (x , R_NamesSymbol );
88 if (names == R_NilValue )
99 {
10- error ("All elements must be named." );
10+ Rf_error ("All elements must be named." );
1111 }
1212
1313 knlist_unique_names (names );
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ void knlist_unique_names(SEXP names)
1010 {
1111 SEXP ni = STRING_ELT (names , i );
1212 if (ni == NA_STRING )
13- error ("Names cannot be <NA>." );
13+ Rf_error ("Names cannot be <NA>." );
1414
1515 if (CHAR (ni )[0 ] == '\0' )
16- error ("All elements must be named." );
16+ Rf_error ("All elements must be named." );
1717 }
1818
1919 SEXP dups = PROTECT (Rf_allocVector (STRSXP , n ));
@@ -65,7 +65,7 @@ void knlist_unique_names(SEXP names)
6565 }
6666
6767 UNPROTECT (1 );
68- error ( msg );
68+ Rf_error ( "%s" , msg );
6969 }
7070 UNPROTECT (1 );
7171}
@@ -155,7 +155,7 @@ void klist_unique_names(SEXP names)
155155 }
156156
157157 UNPROTECT (1 );
158- error ( msg );
158+ Rf_error ( "%s" , msg );
159159 }
160160
161161 UNPROTECT (1 );
You can’t perform that action at this time.
0 commit comments