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
- Host: GitHub
- URL: https://github.com/ThinkR-open/thinkrtemplate
- Owner: ThinkR-open
- License: other
- Created: 2019-03-09T11:34:21.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-01T13:43:58.000Z (almost 5 years ago)
- Last Synced: 2024-08-03T22:18:55.080Z (9 months ago)
- Language: CSS
- Homepage: https://rtask.thinkr.fr
- Size: 69.3 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - ThinkR-open/thinkrtemplate - A pkgdown template for ThinkR packages (CSS)
README
---
output:
github_document: default
---```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# thinkrtemplateThe 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");
});```