An open API service indexing awesome lists of open source software.

https://github.com/ThinkR-open/thinkrtemplate

A pkgdown template for ThinkR packages
https://github.com/ThinkR-open/thinkrtemplate

Last synced: 5 months ago
JSON representation

A pkgdown template for ThinkR packages

Awesome Lists containing this project

README

        

---
output:
github_document: default
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# thinkrtemplate

The goal of {thinkrtemplate} is to have a custom template for ThinkR {pkgdown} pages.

**Please do not re-use it as is for your own packages**

## Installation

Installer le package comme un package classique

## Example

Add a file named `_pkgdown.yml` à la racine de votre projet avec ce code:

```yaml
template:
package: thinkrtemplate
```

You need to add this code at the top of your vignettes to initialize code folding.
Choose between `"show" === "hide"` or `"show" === "show"` for default behaviour.

```js

$(document).ready(function () {
window.initializeCodeFolding("show" === "hide");
});

```