[Rprotobuf-commits] r661 - pkg/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Dec 31 03:45:32 CET 2013


Author: murray
Date: 2013-12-31 03:45:32 +0100 (Tue, 31 Dec 2013)
New Revision: 661

Modified:
   pkg/src/wrapper_Message.cpp
Log:
Replace three more Rf_error calls with Rcpp_error

Modified: pkg/src/wrapper_Message.cpp
===================================================================
--- pkg/src/wrapper_Message.cpp	2013-12-31 02:41:53 UTC (rev 660)
+++ pkg/src/wrapper_Message.cpp	2013-12-31 02:45:32 UTC (rev 661)
@@ -399,12 +399,12 @@
                     case TYPE_MESSAGE:
                     case TYPE_GROUP: {
                         /* fill with the prototype for that message type */
-                        Rf_error("not implemented yet, patches welcome");
+                        Rcpp_error("not implemented yet, patches welcome");
                         break;
                     }
                     case TYPE_ENUM: {
                         /* fill with the prototype for that message type */
-                        Rf_error("not implemented yet, patches welcome");
+                        Rcpp_error("not implemented yet, patches welcome");
                         break;
                     }
                 }
@@ -934,7 +934,7 @@
                Rcpp::IntegerVector index) {
     GPB::FieldDescriptor* field_desc = getFieldDescriptor(message, field);
     if (!field_desc->is_repeated()) {
-        Rf_error("fetch can only be used on repeated fields");
+        Rcpp_error("fetch can only be used on repeated fields");
     }
 
     int n = index.size();



More information about the Rprotobuf-commits mailing list