Skip to content
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

Error when calling plot() #98

Open
kcsanad98 opened this issue Jan 22, 2021 · 0 comments
Open

Error when calling plot() #98

kcsanad98 opened this issue Jan 22, 2021 · 0 comments

Comments

@kcsanad98
Copy link

Hi!

The method for saving mentioned in issue #68 stopped working in version 2.1.13. It's working fine in 2.1.11 though.
The error is thrown when calling the plot() function.
This can be reproduced with the following code:

library(rAmCharts)

data <- data.frame(
  label = c("label1", "label2"),
  value = c(1, 2),
  stringsAsFactors = FALSE
)

rAmCharts::amPie(data = data) -> widget

htmlwidgets::saveWidget(
  widget = plot(widget),
  file = "widget.html"
)

It gives the following error message:

Error in as.double(y) : cannot coerce type 'S4' to vector of type 'double'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant