christophergandrud / networkD3

D3 JavaScript Network Graphs from R
http://christophergandrud.github.io/networkD3
650 stars 269 forks source link

TypeError: undefined is not an object (evaluating 'options.colourScale') #232

Closed mikheyev closed 6 years ago

mikheyev commented 6 years ago

I am running into a puzzling problem with my network. It works fine in RStudio, but the html I generate with knitr doesn't load in any browser with the TypeError above. You can see an example on here.

cjyetman commented 6 years ago

If you're willing to take the time to make a minimal reproducible example, I'd be willing to take the time to investigate the problem for you.

mikheyev commented 6 years ago

As it turns out it is something internal to knitr. Deleting all the cached data fixes this problem. Thanks!