Skip to content

Commit 731f958

Browse files
solaris wants r_coerce<SYMSXP ,STRSXP> apparently
1 parent 5432ae0 commit 731f958

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inst/include/Rcpp/internal/r_coerce.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,10 @@ template <>
290290
inline SEXP r_coerce<LGLSXP ,STRSXP>(int from){
291291
return Rcpp::traits::is_na<LGLSXP>(from) ? NA_STRING :Rf_mkChar( coerce_to_string<LGLSXP>(from));
292292
}
293+
template <>
294+
inline SEXP r_coerce<SYMSXP ,STRSXP>(SEXP from){
295+
return Rf_ScalarString( PRINTNAME(from) ) ;
296+
}
293297

294298
} // internal
295299
} // Rcpp

0 commit comments

Comments
 (0)