Learn R Programming

juicedown

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 package along with knitr and markdown packages.

Installation

Sometime soon (hopefully!), you can install it from CRAN like so:

install.packages("juicedown")

For the time being, you can install the development version of juicedown from GitHub with:

# install.packages("remotes")
remotes::install_github("kenjisato/juicedown")

Example

library(juicedown)

Main function is convert(). (Usually, you do not need dir argument)

convert(juicedown_example("markdown", "sample.md"), dir = ".", clip = FALSE)

# See the result
# browseURL("sample.html")

List sample file directories with

juicedown_example()
#> [1] "from-html"  "include"    "javascript" "markdown"   "yaml-meta"

List contents in the sample with

juicedown_example("javascript")
#> [1] "economics.xlsx" "sample.html"    "sample.Rmd"

How to see the source:

file.show(juicedown_example("javascript", "sample.Rmd"))

Copy Link

Version

Install

install.packages('juicedown')

Monthly Downloads

534

Version

0.1.1

License

MIT + file LICENSE

Maintainer

Kenji Sato

Last Published

September 5th, 2023

Functions in juicedown (0.1.1)

anki

Hide/Show text
convert_html2cms

Convert a HTML file into a HTML block to be copied and pasted for CMS.
includeGraphics

Include graphic media.
anki_setup

Hide/Show text
includeYT

Include YouTube video.
juicedown-package

juicedown: 'juice' + 'markdown': Convert 'R Markdown' into 'HTML' with Inline Styles
counter

Counter factory.
includeQuestion

Include Summary/Details block.
includeText

Insert text into a document.
juicedown_example

List example files
includeAudio

Include Audio media.
tweak_footnote_highlight

Highlight target link for footnotes
tweak_moodle_heading

Hide H2 heading for Moodle LMS
convert

Converts R Markdown file into HTML fragment with inline styles
includeFlickr

Include Flickr album