makeT: Create a vignette (for galleries).

View source: R/get_templates.R

makeTR Documentation

Create a vignette (for galleries).

Description

Create a vignette from w_EntityInfo from wikiTools package (for galleries).

Usage

makeT(data, imageDir=NULL, imageDefault=NULL, language=c("en","es","ca"))

Arguments

data

A data-frame created with w_EntityInfo from wikiTools package.

imageDir

A directory where images will be found. The name must be the 'entity' column content follow by the image extension and the allowed formats are jpg, jpeg, gif, png and svg.

imageDefault

This image will be assigned if 'entity' image is not found in imageDir or no imageDir is specified.

language

a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan).

Value

a data frame wich includes a column of html formatted vignettes called 'info'.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/


Modesto-Escobar/netCoin-2.x documentation built on July 26, 2024, 11:15 p.m.