inf_mr: Serve and live reload slides

infinite_moon_readerR Documentation

Serve and live reload slides

Description

Use the servr package to serve and reload slides on change. inf_mr() and mugen_tsukuyomi() are aliases of infinite_moon_reader().

Usage

infinite_moon_reader(moon, cast_from = ".", ...)

inf_mr(moon, cast_from = ".", ...)

mugen_tsukuyomi(moon, cast_from = ".", ...)

Arguments

moon

The input Rmd file path (if missing and in RStudio, the current active document is used).

cast_from

The root directory of the server.

...

Passed to rmarkdown::render().

Details

The Rmd document is compiled continuously to trap the world in the Infinite Tsukuyomi. The genjutsu is cast from the directory specified by cast_from, and the Rinne Sharingan will be reflected off of the moon. Use servr::daemon_stop() to perform a genjutsu Kai and break the spell.

Note

This function is not really tied to the output format moon_reader(). You can use it to serve any single-HTML-file R Markdown output.

References

https://naruto.fandom.com/wiki/Infinite_Tsukuyomi

See Also

servr::httw


xaringan documentation built on Dec. 28, 2022, 1:35 a.m.