ABSTRACT

Sometimes supplying customdata isn’t the best way to achieve a particular interactive feature. In those cases, the readers likely want to leverage other R lower-level interfaces to web technologies. The R package runpkg makes it easy to download any npm package and include it in a webpage generated through the htmltools package. This react-player React library is rather unique in that it provides a standalone function, renderReactPlayer(), that enables rendering of a React component without loading React itself or leveraging special React syntax like JSX. It’s more likely that the React component library will explicitly require the readers to import both React and React- DOM. The react-player library provides a function called renderReactPlayer() that requires a placeholder for inserting the video as well as a url to the video.