6.8 Dynamic file path

The prior code used to fail on user’s machine as system.file() was called at build-time and the result stored in the variable dataTableDependency and saved in the binary package.

And when someone installs the binary package on their machine, the path isn’t updated to their path.

If, on the other hand, htmlDependency() is called from a function at run-time, everything will work fine.