@@ -260,7 +260,7 @@ SEXP rawToChar(const unsigned char *buf, const size_t sz) {
260260 int i , j ;
261261 for (i = 0 , j = -1 ; i < sz ; i ++ ) if (buf [i ]) j = i ; else break ;
262262 if (sz - i > 1 ) {
263- REprintf ("data could not be converted to a character string\n" );
263+ nano_REprintf ("data could not be converted to a character string\n" );
264264 out = Rf_allocVector (RAWSXP , sz );
265265 memcpy (NANO_DATAPTR (out ), buf , sz );
266266 return out ;
@@ -415,7 +415,7 @@ SEXP nano_unserialize(unsigned char *buf, const size_t sz, SEXP hook) {
415415 }
416416 }
417417
418- REprintf ("received data could not be unserialized\n" );
418+ nano_REprintf ("received data could not be unserialized\n" );
419419 return nano_decode (buf , sz , 8 , R_NilValue );
420420
421421 resume : ;
@@ -470,7 +470,7 @@ SEXP nano_decode(unsigned char *buf, const size_t sz, const uint8_t mod, SEXP ho
470470 case 3 :
471471 size = 2 * sizeof (double );
472472 if (sz % size ) {
473- REprintf ("received data could not be converted to complex\n" );
473+ nano_REprintf ("received data could not be converted to complex\n" );
474474 data = Rf_allocVector (RAWSXP , sz );
475475 } else {
476476 data = Rf_allocVector (CPLXSXP , sz / size );
@@ -479,7 +479,7 @@ SEXP nano_decode(unsigned char *buf, const size_t sz, const uint8_t mod, SEXP ho
479479 case 4 :
480480 size = sizeof (double );
481481 if (sz % size ) {
482- REprintf ("received data could not be converted to double\n" );
482+ nano_REprintf ("received data could not be converted to double\n" );
483483 data = Rf_allocVector (RAWSXP , sz );
484484 } else {
485485 data = Rf_allocVector (REALSXP , sz / size );
@@ -488,7 +488,7 @@ SEXP nano_decode(unsigned char *buf, const size_t sz, const uint8_t mod, SEXP ho
488488 case 5 :
489489 size = sizeof (int );
490490 if (sz % size ) {
491- REprintf ("received data could not be converted to integer\n" );
491+ nano_REprintf ("received data could not be converted to integer\n" );
492492 data = Rf_allocVector (RAWSXP , sz );
493493 } else {
494494 data = Rf_allocVector (INTSXP , sz / size );
@@ -497,7 +497,7 @@ SEXP nano_decode(unsigned char *buf, const size_t sz, const uint8_t mod, SEXP ho
497497 case 6 :
498498 size = sizeof (int );
499499 if (sz % size ) {
500- REprintf ("received data could not be converted to logical\n" );
500+ nano_REprintf ("received data could not be converted to logical\n" );
501501 data = Rf_allocVector (RAWSXP , sz );
502502 } else {
503503 data = Rf_allocVector (LGLSXP , sz / size );
@@ -506,7 +506,7 @@ SEXP nano_decode(unsigned char *buf, const size_t sz, const uint8_t mod, SEXP ho
506506 case 7 :
507507 size = sizeof (double );
508508 if (sz % size ) {
509- REprintf ("received data could not be converted to numeric\n" );
509+ nano_REprintf ("received data could not be converted to numeric\n" );
510510 data = Rf_allocVector (RAWSXP , sz );
511511 } else {
512512 data = Rf_allocVector (REALSXP , sz / size );
0 commit comments