jacobbien / example-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example package

Here's an example package made with litr where both its pkgdown website and its bookdown are nicely rendered.

To create this, we ran the following from an R console:

litr::render("index.Rmd")
fs::dir_copy("_book", "docs/create", overwrite = TRUE)
fs::dir_delete("_book")

We would run the above whenever we make a change.

Initial setup (done only once): On the github page for this repo, we clicked Settings > Pages and set this to be deployed from the main and then chose the /docs directory (rather than the root).

About


Languages

Language:R 100.0%