MCPcopy Create free account
hub / github.com/Rblp/Rblpapi / addPosixClass

Function addPosixClass

src/blpapi_utils.cpp:138–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138void addPosixClass(SEXP x) {
139 // create and add dates class to dates object
140 // cf Rcpp's inst/include/Rcpp/date_datetime/newDatetimeVector.h
141 Rcpp::Shield<SEXP> datetimeclass(Rf_allocVector(STRSXP,2));
142 SET_STRING_ELT(datetimeclass, 0, Rf_mkChar("POSIXct"));
143 SET_STRING_ELT(datetimeclass, 1, Rf_mkChar("POSIXt"));
144 Rf_setAttrib(x, R_ClassSymbol, datetimeclass);
145}
146
147void appendOptionsToRequest(Request& request, SEXP options_) {
148 if(options_== R_NilValue) { return; }

Callers 1

allocateDataFrameColumnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected