We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e9901 commit a280acbCopy full SHA for a280acb
inst/include/Rcpp/DataFrame.h
@@ -101,9 +101,8 @@ namespace Rcpp{
101
if( ::Rf_inherits( x, "data.frame" )){
102
Parent::set__( x ) ;
103
} else{
104
- SEXP y = PROTECT(internal::convert_using_rfunction( x, "as.data.frame" )) ;
+ Shield<SEXP> y(internal::convert_using_rfunction( x, "as.data.frame" )) ;
105
Parent::set__( y ) ;
106
- UNPROTECT(1);
107
}
108
109
0 commit comments