RStudio & RMarkdown Guide
Publish content from RStudio with RMarkdown. Recommended: render to Markdown directly (without blogdown); fallback: blogdown only if necessary.
R users can publish to Ownable with RMarkdown in RStudio. The recommended path is to render .Rmd to plain Markdown and let Hugo handle the site. Blogdown is a fallback only if you must.
Recommended: Render to Markdown (no blogdown)
- Install
rmarkdown:install.packages("rmarkdown") - Add to your
.Rmdfrontmatter (or set in thermarkdown::rendercall):output: md_document - Render your file:
rmarkdown::render("input.Rmd", rmarkdown::md_document()) - Place the generated
.mdin your Hugo content (e.g.,content/blog/my-analysis/index.mdwith images in the same folder orassets/media). - Run your usual Hugo workflow (
hugo servervia the CLI or the Visual Builder).
Commit both the source .Rmd and the generated .md so teammates can rebuild if needed.
Why avoid blogdown by default?
- Compatibility: blogdown has lagged modern Hugo features and can corrupt config paths (e.g.,
config/_default) and Hugo Modules. - Extra complexity: adds another build step and can mask Hugo errors.
- Ownership: blogdown competes with Hugo for the HTML rendering pipeline; keeping Hugo in control prevents double-processing and keeps your site output consistent and debuggable.
If you must use blogdown (not recommended)
-
Install blogdown (latest)
remotes::install_github("rstudio/blogdown") -
Open your site Open the project in RStudio; expect blogdown to flatten
config/_defaultinto project root (a known limitation). -
Create content
blogdown::new_post(title = "My Analysis", ext = ".Rmd") -
Serve Use Addins → Serve Site (runs
blogdown:::serve_site()).
If you hit build issues, convert to plain Markdown with md_document and return to the recommended path above.
Tips
- Prefer
.Rmarkdownover.Rmdif you want Hugo to own the HTML rendering. - Keep image paths relative and web-safe; store in page bundles or
assets/media. - Avoid the dated embedded RStudio browser for previews; use a real browser on the
hugo serverURL.
Was this page helpful?
Obsidian: Markdown Knowledge Base
Manage your Ownable content with Obsidian. Use it as a powerful local CMS for writing, editing, and linking your Markdown files.
Jupyter Notebooks (.ipynb)
Publish Jupyter Notebooks as blog posts or pages. Learn how to convert .ipynb files to Markdown for data science and research content.
From the makers of
© 2026 Lore Labs.