Skip to content

Commit

Permalink
clone(x) for #60
Browse files Browse the repository at this point in the history
  • Loading branch information
SymbolixAU committed Jan 22, 2020
1 parent ef91574 commit e835a4b
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 49 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: colourvalues
Type: Package
Title: Assigns Colours to Values
Version: 0.3.1001
Version: 0.3.1002
Date: 2019-11-15
Authors@R: c(
person("David", "Cooley", ,"dcooley@symbolix.com.au", role = c("aut", "cre"))
Expand All @@ -24,7 +24,7 @@ LinkingTo:
Imports:
graphics,
Rcpp
RoxygenNote: 6.1.1
RoxygenNote: 7.0.2
Suggests:
covr,
microbenchmark,
Expand Down
3 changes: 2 additions & 1 deletion inst/include/colourvalues/api/api_hex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ namespace api {
}
}
case REALSXP: {
Rcpp::NumericVector nv = Rcpp::as< Rcpp::NumericVector >( x );
//Rcpp::NumericVector nv = Rcpp::as< Rcpp::NumericVector >( x );
Rcpp::NumericVector nv = Rcpp::clone(x);
return colourvalues::colours_hex::colour_value_hex(
nv, palette, na_colour, include_alpha, format_type, n_summaries, format, digits
);
Expand Down
97 changes: 74 additions & 23 deletions man/colour_values.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 74 additions & 23 deletions man/colour_values_rgb.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e835a4b

Please sign in to comment.