coolbutuseless/devout

Error converting to environment

Closed this issue · 2 comments

I don't understand enough of this code to tell where this error is really coming from, or if it's even an unexpected error... should I be able to run this code in a console?

https://github.com/coolbutuseless/devoutsvg/blob/master/vignettes/svg-with-d3-complex.Rmd#L109-L113

I get

Error in devout::rdevice("svg_callback", filename = filename, width = width,  : 
  Cannot convert object to an environment: [type=character; target=ENVSXP]

I'm hoping to insert this into a shiny app, but I get the same error there. I can't debug any futher

This may be one of those things where creating the issue breaks the spell and it works again. Not sure what the problem was but I seem to have the SVG loading in a shiny app, albeit without the interactivity.

Any clues as to which pair of render/output functions might work?

Disregard. It's all working now. I had to add the D3 dependency. 🙄