You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi everyone:
I use render_site to generate my html website but I want to include all dependencies in the html, can you tell me how to achieve it?
waiting for your reply, have a good day!
Yes, this should work, though it will create a very heavy website. The advantage of a website is to have shared dependencies, with .html in a folder and a common libs path accessed by all .html.
If every HTML is self-contained, each file will be very heavy.
This is not common usage so I don't know if there is side effect, you could try it.
Out of curiosity, why do you want all deps to be included? If you do a website, you will have several html files anyway, so you'll need to deploy a folder. Why not deploy the lib folder with the other files ?
Activity
uzsolt commentedon Jul 19, 2025
The
html_document()hasself_containedoption - maybe can try it.cderv commentedon Jul 25, 2025
Yes, this should work, though it will create a very heavy website. The advantage of a website is to have shared dependencies, with .html in a folder and a common libs path accessed by all .html.
If every HTML is self-contained, each file will be very heavy.
This is not common usage so I don't know if there is side effect, you could try it.
Out of curiosity, why do you want all deps to be included? If you do a website, you will have several html files anyway, so you'll need to deploy a folder. Why not deploy the lib folder with the other files ?