talgalili / d3heatmap

A D3.js-based heatmap htmlwidget for R
Other
236 stars 95 forks source link

'col_numeric' is not an exported object from 'namespace:scales' #16

Closed hugh1li closed 9 years ago

hugh1li commented 9 years ago

Install and load packages d3heatmap and run the sample d3heatmap(mtcars, scale = "column", colors = "Blues")

Error above happens.

jcheng5 commented 9 years ago

Try install.packages("scales"), restart R, and try again.

hugh1li commented 9 years ago

I tried before you told. It didn't work.

jcheng5 commented 9 years ago

What does packageVersion("scales") return? If not 0.2.5, can you try a different CRAN mirror?

hugh1li commented 9 years ago

IT worked. Thanks!

MarkEdmondson1234 commented 9 years ago

Hi, I'm getting this error with 0.2.5 scales installed:

> d3heatmap(result_matrix)
Error: 'col_numeric' is not an exported object from 'namespace:scales'

> packageVersion("d3heatmap")
[1] ‘0.6.0’
> packageVersion("scales")
[1] ‘0.2.5’

But I had an old version of htmlwidgets() installed - I updated that and now it works.

talgalili commented 9 years ago

@MarkEdmondson1234 - could you please re-install "scales" and check if that helps? Also, does it happen on other datasets than result_matrix?

MarkEdmondson1234 commented 9 years ago

I installed a newer version of htmlwidgets(), and that worked, thanks :)