Simpler interface [[Rcpp::export]]
| 184 | // |
| 185 | // [[Rcpp::export]] |
| 186 | SEXP authenticate_Impl(SEXP con_, SEXP uuid_, SEXP ip_address_, SEXP is_auth_id_, |
| 187 | SEXP app_name_) { |
| 188 | Identity* identity_p = NULL; |
| 189 | if (uuid_ == R_NilValue) { |
| 190 | identity_p = authenticateWithApp(con_); |
| 191 | } else { |
| 192 | identity_p = authenticateWithId(con_, uuid_, ip_address_, is_auth_id_, app_name_); |
| 193 | } |
| 194 | if(identity_p == NULL) { Rcpp::stop("Identity pointer is null\n"); } |
| 195 | return createExternalPointer<Identity>(identity_p, identityFinalizer, "blpapi::Identity*"); |
| 196 | } |
no test coverage detected