add null check in appendOptionsToRequest before trying to coerce to Rcpp::CharacterVector
add bar function