Movatterモバイル変換


[0]ホーム

URL:


Dirk Eddelbuettel

linl: Linl is not Letter

Build StatusPackage-LicenseCRANDependenciesDownloadsLast Commit

Motivation

The LaTeX Letter class is very useful for simple letters. As suchletters are also somewhat standardized, they make for excellentcandidates for use by Markdown.

This package leans on earlier work byAaron Wolen in hispandoc-letterrepository, and extends it for use from R via thermarkdownpackage.

Example

Skeleton

The skeleton creates a very simple letter. This shows the (complete)source on the left and the rendered pdf on the right:

Vignette

The vignette example is a little more featureful and shows how toincluded a letterhead on-demand, as well as a signature. Both of theseare driven by simple YAML headers as seen on the left:

Status

The package is fully working, and onCRAN.

Usage

Use the standard

install.packages("linl")

to install it from CRAN, and then use as a Markdown template viaRStudio, or use code such as

library(rmarkdown)draft("myletter.Rmd",template="pdf",package="linl",edit=FALSE)render("myletter.Rmd")

to create a first draft of a newmyletter.Rmd.

Requirements

Beyond the R package dependencies, a workingpandocbinary is needed. RStudio installs its own copy, otherwise do what isneeded on your OS (i.e., something likesudo apt-get install pandoc pandoc-citeproc).

The pdf mode should only require a basic LaTeX installation.

Authors

Dirk Eddelbuettel and Aaron Wolen.

License

GPL-3 for this package, the work inpandoc-letter, aswell as underlying Pandoc template.

Initially created: Sun Oct 15 16:26:45 CDT 2017
Last modified: Sun May 26 10:02:51 CDT 2024


[8]
ページ先頭

©2009-2025 Movatter.jp