ABSTRACT

Besides static figures in R Markdown output documents, you can also generate interactive widgets in the HTML output. The HTML widgets framework makes it easy to introduce JavaScript libraries into R, so that users can create interactive widgets using pure R syntax without having to learn JavaScript. This chapter is for potential developers to learn how to create a widget. It introduces the file layout, the concept of JavaScript/CSS dependencies, R bindings, and JavaScript bindings. It also shows how to integrate a widget in an R package.