-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with data.table
#263
Comments
Hi @cmhh Ooops. Thanks. I will fix this at home ;)! |
I run: library(data.table)
library(highcharter)
dt <- data.table(x=rep(c("b","a","c"),each=3), y=c(1,3,6), v=1:9)
head(dt)
hchart(dt, "scatter", hcaes(x = v, y))
highchart() %>%
hc_add_series(dt, "scatter", hcaes(x = v, y)) without problems: http://rpubs.com/jbkunst/highcharter-issue-263 Can we check your sessionInfo? |
Sorry. This looks like my mistake. We have two Linux servers at work--one had 0.4.0 on it and the other had 0.5.0, and I didn't realise (or check). The error occurs in 0.4.0, but not 0.5.0.
On 10 Feb 2017 16:08, Joshua Kunst <notifications@github.com> wrote:
I run:
library(data.table)
library(highcharter)
dt <- data.table(x=rep(c("b","a","c"),each=3), y=c(1,3,6), v=1:9)
head(dt)
hchart(dt, "scatter", hcaes(x = v, y))
highchart() %>%
hc_add_series(dt, "scatter", hcaes(x = v, y))
without problems: http://rpubs.com/jbkunst/highcharter-issue-263
Can we check your sessionInfo?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#263 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AHxK_hkcH_dvAbBgjUKY-oa6MrNeOpA5ks5ra9SmgaJpZM4L8umc>.
|
No problem |
Not sure what the protocol is regarding commenting on a closed issue... It turns out it wasn't the library(data.table)
library(highcharter)
dt <- data.table(x=rep(c("b","a","c"),each=3), y=c(1,3,6), v=1:9)
hchart(dt, "scatter", hcaes(x = v, y))
library(dtplyr)
hchart(dt, "scatter", hcaes(x = v, y)) After loading
I guess this is some sort of masking issue related to Cheers |
Don't worry, I will look into it to see what happens ;). |
Hi @cmhh Internally, I forced to be only a Thanks |
I'll close the issue. If you still have problem we can reopen. Regards, |
I've noticed I get errors when using
data.table
with functions such ashc_add_series
. I imagine this is becausehc_add_series.data.frame
is dispatched, and doesn't work quite right if thedata.table
package is loaded. A simple fix is to always pass indata.frame(dt)
, but I wonder if this could be handled explicitly within the package? Perhaps by addinghc_add_series.data.table
, for example.The text was updated successfully, but these errors were encountered: