22 #ifndef Rcpp__Formula_h
23 #define Rcpp__Formula_h
41 switch( TYPEOF( x ) ){
43 if( ::Rf_inherits( x,
"formula") ){
52 if( ::Rf_length(x) > 0 ){
53 SEXP y = VECTOR_ELT( x, 0 ) ;
54 if( ::Rf_inherits( y,
"formula" ) ){
61 throw not_compatible(
"cannot create formula from empty list or expression" ) ;
77 typedef Formula_Impl<PreserveStorage>
Formula ;
#define RCPP_GENERATE_CTOR_ASSIGN(__CLASS__)
SEXP convert_using_rfunction(SEXP x, const char *const fun)
Formula_Impl< PreserveStorage > Formula
RCPP_API_CLASS(DottedPair_Impl)