Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between a manual and a vignette?

Tags:

r

manual

vignette

I've been reading through R's Affy manual, and it refers to other vignettes. Does the difference between these two terms simply relate to quantity of content, or is there more to it?

like image 550
Atticus29 Avatar asked Jan 12 '16 21:01

Atticus29


People also ask

What is a vignette in coding?

A vignette is like a book chapter or an academic paper: it can describe the problem that your package is designed to solve, and then show the reader how to solve it. Many existing packages have vignettes.

How to see r vignettes?

Currently, only PDF versions of vignettes can be viewed. The program specified by the pdfviewer option is used for this. If several vignettes have PDF versions with base name identical to topic , the first one found is used. If no topics are given, all available vignettes are listed.


1 Answers

Reference Manuals

The reference manual of a package is a single document beginning with the package description and containing all of the content from the .Rd help files for the packages. Generally, this means it has the help files for (exported) functions in the package, any documented data sets, and package-level documentation (if included). It is automatically generated from the .Rd sources.

Every package has a manual. Even a package with no exported functions and documentation would still have a manual (when built) consisting of the text from the Description file.

Vignettes

Vignettes are free-form documents. Generally, package authors use them to demonstrate the use of their package. They are optional, some packages have several (as I write this dplyr has 8 vignettes) and many packages have none.


As mentioned in the comments the R Extensions Manual is the definitive source for all things package-related. Here is Josh's link to the Vignettes Section, and 2.15 Processing documentation files describes how reference manuals are built.

like image 89
Gregor Thomas Avatar answered Oct 07 '22 02:10

Gregor Thomas