Learn R Programming

monographaR (version 1.0)

buildMonograph: Build and export a monograph skeleton (draft)

Description

This function will generate a MS-Word or html file with a monograph skeleton (draft)

Usage

buildMonograph(headings, tableToDescription.data, examinedSpecimens.data = NULL, 
collectorList.data = NULL, output = "Word", title = "Taxonomic treatment")

Arguments

headings
data.frame
tableToDescription.data
data.frame
examinedSpecimens.data
data.frame (optional)
collectorList.data
data.frame (optional)
output
"Word" or "html"
title
character

Value

  • Exports a file (MS-Word or html).

Details

This function wraps around the functions tableToDescription, examinedSpecimens and collectorList generating a monograph draft in MS-Word or html format. The resulting monograph skeleton will include the taxonomic heading, the description, comments and examined specimens list for all species found in the input tables, and it will append the collector list in the end of the file. It requires four tables as input. Three of them are the same tables used for tableToDescription, collectorList, and examinedSpecimens functions. The additional input table should have three columns: species, taxonomic heading and comments. The examinedSpecimens.data and collectorList.data tables are optional. It uses functions of the rmarkdown package to export the output file.

See Also

rmarkdown

Examples

Run this code
data(monographaR_examples)
monographaR_examples$taxonomic_headings -> taxonomic.headings
monographaR_examples$collectorList -> col.d
monographaR_examples$examinedSpecimens -> exam.d
monographaR_examples$tableToDescription -> desc.d
desc.d[,-1] -> desc.d

###	buildMonograph(headings=taxonomic.headings, 
###               collectorList.data = col.d, 
###               examinedSpecimens.data = exam.d, 
###               tableToDescription.data = desc.d, 
###               output = "Word", title="Monograph skeleton")

Run the code above in your browser using DataLab