-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
76 lines (53 loc) · 1.77 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# juicedown
<!-- badges: start -->
[](https://github.com/kenjisato/juicedown/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
The goal of juicedown is to offer useful tools to minimize routine formatting of
page contents on such CMS/LMS as Moodle where code editor silently ignore style
and link tags. To generate CSS-inlined HTML, the package uses
[juicyjuce](https://CRAN.R-project.org/package=juicyjuice) package
along with [knitr](https://cran.r-project.org/package=knitr) and [markdown](https://cran.r-project.org/package=markdown) packages.
## Installation
Sometime soon (hopefully!), you can install it from CRAN like so:
``` r
install.packages("juicedown")
```
For the time being, you can install the development version of juicedown from [GitHub](https://github.com/) with:
``` r
# install.packages("remotes")
remotes::install_github("kenjisato/juicedown")
```
## Example
```{r example}
library(juicedown)
```
Main function is `convert()`. (Usually, you do not need `dir` argument)
```{r convert, eval = FALSE}
convert(juicedown_example("markdown", "sample.md"), dir = ".", clip = FALSE)
# See the result
# browseURL("sample.html")
```
List sample file directories with
```{r list-samples}
juicedown_example()
```
List contents in the sample with
```{r list-contents}
juicedown_example("javascript")
```
How to see the source:
```{r see-inside, eval = FALSE}
file.show(juicedown_example("javascript", "sample.Rmd"))
```