Skip to content

Commit

Permalink
Strip dimension of distort_dist_concs so that it appears as a vector
Browse files Browse the repository at this point in the history
  • Loading branch information
ngmarchant committed Jun 21, 2022
1 parent a573f26 commit 1b9a4dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/distort_dist_concs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ double DistortDistConcs::get(attr_id aid) const {
}

Rcpp::NumericVector DistortDistConcs::to_R() const {
return Rcpp::wrap(values_);
Rcpp::NumericVector values_vec = Rcpp::wrap(values_);
values_vec.attr("dim") = R_NilValue ;
return(values_vec);
}

void DistortDistConcs::update(
Expand Down

0 comments on commit 1b9a4dc

Please sign in to comment.