JohnCoene / javascript-for-r-comments

1 stars 0 forks source link

8.7 Compatibility #29

Open MayaGans opened 4 years ago

MayaGans commented 4 years ago

I think I understand this section but I guess I'm still a little confused on how to resolve a dependency conflict. For instance I'm creating a little widget that uses the latest version of d3.js (v6.0). How do I use htmlDependencies to ensure if my widget is used with another d3 widget there isnt a conflict? Is this possible to control for across developers?

JohnCoene commented 4 years ago

I'm afraid it's no possible (to the best of my knowledge). It's not really specific to htmlwidgets more JavaScript/HTML itself.

The trick I show in the book will not work in this case: if your package depends on v6 and another on v5 then they will clash. I can look more into this.