generated from EcologyR/templateRpackage
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathREADME.Rmd
More file actions
731 lines (579 loc) · 26.7 KB
/
README.Rmd
File metadata and controls
731 lines (579 loc) · 26.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
---
output: github_document
editor_options:
markdown:
wrap: 72
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# labeleR
<!-- badges: start -->
`r badger::badge_cran_release()`

[](https://github.com/EcologyR/labeleR/actions/workflows/R-CMD-check.yaml)
`r badger::badge_lifecycle("stable")`
`r badger::badge_repostatus("Active")`
<!-- [](https://hits.dwyl.com/EcologyR/labeleR) -->
<!-- [](https://hits.dwyl.com/EcologyR/labeleR) -->
[](https://cran.r-project.org/package=labeleR)
<!-- badges: end -->
<img src="man/figures/labeleR.png" width="140px" align="right"/>
Have you ever thought, if there was an automatic way…? labeleR is an R
package to optimize the creation of your own collection labels,
scientific documentation for events, and much more! 🏷️
If you need to create your labels (for your lab, plant vouchers, insect
collections), attendance, participation certificates or accreditation
badges (to a course, a congress)... labeleR is the answer! Decide which
function to use, copy the code into your console, modify it and run!
Keep an eye 👀 on this easy tutorial on how to use it 👇
## Installing labeleR
To install the latest stable version of **labeleR** from CRAN, just use
`install.packages()` function.
```{r install labeleR CRAN, eval=F}
install.packages("labeleR")
```
However, if you want to install the latest version of **labeleR** from
GitHub, you might need to install the *devtools* package. Once you have
it, you just have to specify the repository and install:
```{r install labeleR GH, eval=F}
# install.packages("devtools")
devtools::install_github("EcologyR/labeleR")
```
Ps. If you want to clone the repository, you can find the code
[here](https://github.com/EcologyR/labeleR).
### TinyTeX
**labeleR** depends on LaTeX, so you must have it also installed. We
recommend using [TinyTeX](https://yihui.org/tinytex/).
First, you would need to install the `tinytex` R package:
```{r install LaTeX, eval=F}
# install.packages("tinytex")
tinytex::install_tinytex()
```
⏱️ The first time you install tinytex or use **labeleR** it may take a
while until all packages are correctly installed. Don't worry, it will
be much quicker next time!
#### TinyTeX troubleshooting
In case you have problems installing `TinyTeX`'s packages, try running
this in your console:
```{r TinyTeX pkgs, eval = FALSE}
tinytex::tlmgr_install(pkgs = c( "zref", "needspace", "pagecolor",
"bookmark", "changepage", "fp",
"mdframed", "ms", "pgf",
"pspicture", "qrcode"))
```
## 1. Getting started
```{r load labeleR, eval = FALSE}
library("labeleR")
```
### 1.1 Loading the data
The very first thing you need to start using labeleR is a dataset where
the information is included. This dataset can be imported to the R
environment from a file ('.csv'), excel sheet ('.xlsx'), a Google Sheet,
using `read.table()`, `readxl::read_excel()`, `gsheet::gsheet2tbl()` and
alike functions.
Here an example of a dataset imported from a Google Sheet URL:
```{r loading_data}
library(gsheet)
#URL: https://docs.google.com/spreadsheets/d/1inkk3_oNvvt8ajdK4wOkSgPoUyE8JzENrZgSTFJEFBw/edit#gid=0
people_list_long <- gsheet2tbl("1inkk3_oNvvt8ajdK4wOkSgPoUyE8JzENrZgSTFJEFBw")
```
A key point is that the Google Sheet document must grant at least view
access to anyone with the link; otherwise R will not be able to open it.
### 1.2 Some advice for the labeleR functions
When using labeleR's functions, there are some widely used arguments and
nomenclature you should be aware of.
The first required argument in all functions is `data`, which is the
data frame that has been previously loaded. The second one is `path`,
which is the folder where the output PDFs will be stored. In case the
specified folder does not exist, it will be automatically created. If
you want to name the output PDF file in a certain way, you must specify
it using the `filename` argument. Additionally, you can store the
created intermediate files (e.g. RMarkdown, picture files) using
`keep.files = TRUE`.
Ultimately, labeleR uses its own templates to create the documents.
However, these can be modified for specific purposes. To do so, open a
RMarkdown file in RStudio from the labeleR template you want to edit,
and after saving it locally, specify its directory path in the
`template` argument.
RStudio \> File \> New File \> RMarkdown... \> From Template \>
{LabeleRTemplate.Rmd}
Pictures (such as logos or signatures) are included in some templates.
For these, argument names are `lpic` (standing for left picture, in the
top), `rpic` (right picture, also in the top), `signature.pic`
(signature picture) in the certificates, and `logo` in the collection
label. In all these cases the path to the picture file must be provided.
As for the arguments nomenclature, there are two kinds. On the one hand,
the "fixed" arguments, which are those that remain the same in all the
documents (e.g. the name of a conference in an accreditation, or the
name of a herbarium institution). These arguments are named using a
unique word (e.g. `event` or `speaker`), and can be filled in using free
text. On the other hand, "variable" arguments are those which vary among
documents, and therefore differ among rows (e.g. attendees names to a
conference, or species in herbarium labels). To specify the column of
data in which this information is stored, two-word parameters are used
(i.e. `name.column` or `species.column`). The only argument that does
not follow this philosophy is `qr` (present in `create_herbarium_label`,
`create_collection_label` and `create_tiny_label`). This parameter can
be set as a column name, used as a "variable" argument, or as a free
text,as a "fixed" one.
## 2. labeleR functions
Now let's start using labeleR!
Here we will display a blank example to help you see the internal
template structure, accompanied by some examples inspired in the Harry
Potter universe! 🔮
### 2.1 Collection labels
#### 2.1.1 Herbarium labels
Herbarium labels are one of the documents with more variable parameters,
as there is a lot of information that can be included. Here, we have
chosen what we consider to be the most useful parameters, but we have
included three free fields for the user to include the information they
prefer. Of course, a field's name does not force the user to use it for
that category (location can be set in the elevation column, on top; and
vice versa), but be aware that the `family.column` content will always
be capitalized, and the `taxon.column` one in italics, so those ones we
recommend to use them as stated.
As said before, the QR can stand for a free text (and therefore remain
identical in all labels), or be a column name, and the codes will be
rendered with the individual information of each row. Four different
labels will fit in each of the A4 pdf pages.
Warning! Including too long texts may cause the alteration of the
structure of the labels, so we recommend to be concise (specially with
area description!)
|  |
|--------------------------------------|
##### Herbarium labels example:
In this example, we show the labels some students have created for their
herbarium assignment of the Herbology class.
```{r herbarium labels, eval=FALSE}
create_herbarium_label(
data = herbarium.table,
path = "labeleR_output",
filename = "herbarium_labels",
qr = "QR_code",
title ="Magical flora of the British Isles" ,
subtitle = "Project: Eliminating plant blindness in Hogwarts students",
family.column = "Family",
taxon.column = "Taxon",
author.column = "Author",
det.column = "det",
date.det.column = "Det_date",
location.column = "Location",
area.description.column = "Area_description",
latitude.column = "Latitude",
longitude.column = "Longitude",
elevation.column = "Elevation",
field1.column = "life_form",
field2.column = "Observations",
field3.column = "Height",
collector.column = "Collector",
collection.column = "Collection_number",
assistants.column = "Assistants",
date.column = "Date"
)
```
|  |
|---------------------------------------|
#### 2.1.2. Collection labels
Collection labels are one of the most aesthetic labels. They have five
variable parameters (which are not recommended to be too long, as
explained in the herbarium labels), along with the possibility of
including a QR code (fixed or variable), an image (logo or picture).
Field 1 will be always capitalized (as in `family.column` in the
herbarium label), and Field 2 italicized. Any field can be left blank.
As a novelty, the user may manually fix the backgroud and text colors to
their preference, using HTML color codes (same code as HEX, but without
the '\#'). By default, background colors are two hues of green. Eight
different labels will fit in each of the A4 pdf pages.
|  |
|----------------------------------------------|
##### Collection labels example:
In this example we can see six labels created for the school's displayed
collection of stuffed animals.
```{r collection labels, eval=FALSE}
create_collection_label(
data = collection.table,
path = "labeleR_output",
filename = "labels",
qr = "QR_code",
field1.column = "field1",
field2.column = "field2",
field3.column = "field3",
field4.column = "field6",
field5.column = "field7",
system.file("rmarkdown/pictures/Hogwarts_BnW.png", package = "labeleR"),
bgcolor = "D0ECC1", #White is "FFFFFF",
textcolor = "1E3F20" #Black is "000000"
)
```
|  |
|----------------------------------------|
### 2.1.3 Tiny labels
This type of labels is a simplified version of the previous, and
includes just five variable fields and the possibility of including a QR
code.
We recommend as in the previous cases not to include too long texts
neither in the variable arguments nor in the QR, as they can become
difficult to read.
16 different labels will fit in each of the A4 pdf pages. In case this
size is too big for the pretended use (as can happen for small insect
collections, for example), we recommend to use the "print several pages
per sheet" in the printer's options.
|  |
|---------------------------------------|
#### Tinylabels example:
Here, tiny labels are created for typical collections stored in insect
collection boxes, so a normal collection label would be too big.
```{r tinylabels, eval=FALSE}
create_tiny_label(
data = tiny.table,
qr = "QR_code",
path = "labeleR_output",
filename = "tinylabels",
field1.column ="field2",
field2.column ="field1",
field3.column ="field3",
field4.column ="field4",
field5.column ="field5"
)
```
|  |
|---------------------------------|
### 2.2. Documents for scientific events
#### 2.2.1. Abstract book
Abstract books result in a single document with multiple pages. Each
abstract will appear on a different page, following the same order as in
the dataframe rows. If other order of appearance is desired, just
arrange your columns in the original dataframe. Each page will include
four variable fields (title, author names, affiliations and the abstract
texts). The output document can include a table of contents with the
titles and page numbers of all abstracts. Additionally, you can also
insert a front page that will appear at the beginning of the document.
#### Abstract book example:
Here we create a document with several abstracts that were presented at
the XXX Congress, including a cover and a table of contents. In the
image we present the first four pages.
```{r create abstractbook, eval=FALSE}
create_abstractbook(
data=abstract.table,
path = "labeleR_output",
filename = "congress_abstractbook",
title.column = "abstract_title",
authors.column = "authors",
affiliation.column = "affiliation",
text.column = "abstract_text",
title.cex = 20,
authors.cex = 15,
affiliations.cex = 14,
text.cex = 12,
frontpage = "Congress_frontpage.pdf"
)
```
|  |
|-------------------------------------------|
#### Abstract book example:
As an example, we present the accreditation cards that might have been
used in the International Conference of Muggleology, where the only
changing fields are names and affiliations of attendees.
### 2.2.2. Badges
Badges can be used for personal accreditation in congresses, courses,
meetings, etc. They have only two variable fields (name and
affiliation), and can include two top logos or images, although are not
signed. Accreditation cards include a dot line in the bottom for
individual hand-edition.
|  |
|-----------------------------------|
#### Badges example:
```{r create accreditations, eval=FALSE}
create_badge(
data = badges.table,
path = "labeleR_output",
filename = "badges",
event = "INTERNATIONAL CONFERENCE OF MUGGLEOLOGY",
name.column = "List",
affiliation.column = "Affiliation",
rpic = system.file("rmarkdown/pictures/Hogwartslogo.png", package = "labeleR"),
lpic = system.file("rmarkdown/pictures/MinMagic.png", package = "labeleR")
)
```
As an example, we present the accreditation cards that might have been
used in the International Conference of Muggleology, where the only
changing fields are names and affiliations of attendees.
|  |
|-----------------------------|
#### 2.2.3. Attendance certificates
**NOTE:** It is possible to send certificates automatically via email!
To see how go to the FAQ section!
Attendance certificates are one of the easiest templates; the only
variable parameter is the name of the attendees. Our template allows to
include a signature as an image, so the signer does not have to go
through them all. This certificate is available both in English and
Spanish. In case pictures look too big or small, it is possible to
modify their size in the template.
The structure of the certificate looks as follows:
|  |
|---------------------------------------|
##### Attendance certificate example:
In this example, we create four different certificates for four students
of Hogwarts School, in which the Headmaster certifies they have attended
200 h of the Potions class.
```{r create attendance certificates, eval=FALSE}
create_attendance_certificate(
data = attendance.table,
path = "labeleR_output",
filename = "attendance_certificates",
language = "English" ,
name.column = "Names",
type = "class",
title = "Potions (year 1992-1993)",
date = "23/06/1993",
hours = "200",
freetext = "taught by Professor S. Snape",
signer = "A.P.W.B. Dumbledore",
signer.role = "School Headmaster",
rpic = system.file("rmarkdown/pictures/Hogwartslogo.png", package = "labeleR"),
lpic = system.file("rmarkdown/pictures/Hogwartslogo.png", package = "labeleR"),
signature.pic = system.file("rmarkdown/pictures/dumbledore.png", package = "labeleR")
)
```
In this example, each certificate will be rendered in an individual PDF
document.
|  |
|----------------------------------------------|
#### 2.2.4 Participation certificates
Participation certificates are similar to the previous, but with more
variable parameters (such as speaker, affiliation, title, etc.). As well
as the attendance certificate, these documents can be rendered in
English and in Spanish.
|  |
|------------------------------------------|
#### Participation certificate example:
Here, Albus Dumbledore certifies that four of the school teachers have
participated in some seminars with different titles, different
affiliations, dates and communication types.
```{r create participation certificates, eval=FALSE}
create_participation_certificate(
data = participation.table,
path = "labeleR_output",
filename = "participation_certificates",
language = "English",
name.column = "Name",
affiliation.column = "House",
comm.type.column = "Comm.type",
title.column = "Title",
date.column = "Date",
type = "online",
event = "seminar",
freetext = "organized by Hogwarts School of Magic and Wizardry",
signer = "A.P.W.B. Dumbledore",
signer.role = "School Headmaster",
rpic = system.file("rmarkdown/pictures/Hogwartslogo.png", package = "labeleR"),
lpic = system.file("rmarkdown/pictures/MinMagic.png", package = "labeleR"),
signature.pic = system.file("rmarkdown/pictures/dumbledore.png", package = "labeleR")
)
```
In this example, each certificate will be rendered in an individual PDF
document in a common folder.
|  |
|-------------------------------------------------|
### 2.3. Other functions
The ´labeleR´ philosophy is quite simple: creating documents with a
constant structure but varying dataset information. Then, the future of
labeleR is encouraging and unpreditable, able to include multiple and
diverse options! For now, we have included a new function dedicated to
ease teaching tasks!
#### 2.3.1. Multichoice exams
The aim of this function is to randomize the questions and possible
answers inside a multiple choice exam to obtain different versions. This
can solve one of the main teachers' tasks: prepare exams with different
answers to avoid students not focused on their own exam during a test,
trying to extract information from their peers within a class (but also
between courses and even among years...!)
This function creates a multiple choice exam, with 4 questions per page
and an optional image associated to each question (please note that the
first page includes the title plus 3 questions). Each time the function
is run, both questions and answer will be randomized. to be able to
obtain the same version of an exam, you must set the same seed number
(note it somewhere!), which can be useful in case we want to recover a
lost version. A solution document with the correct answers underlined if
the argument `solutions` is set to TRUE.
```{r create multichoice, eval=FALSE}
create_multichoice(
data = multichoice.table,
path = "labeleR_output",
filename = "example_exam",
title = "Example test",
question.column = "question",
option1.column = "opt1.correct",
option2.column = "opt2",
option3.column = "opt3",
option4.column = "opt4",
start = 1,
solutions=T,
seeds = c(1:2)
)
```
#### Multiple choice exam example:
|  |
|------------------------------------------|
## 3. Frequently Asked Questions
### Template customization
One of the greatest features of `labeleR`, in our opinion, is its
customizable potential to attend all user's needs. Although functions
have a set number of arguments (as the information they gather has to be
checked adn translated to LATEX), the way it is rendered can be adapted
to each user preference. Some of the most common changes are listed
here, and some clues on how to adapt them on your template. To see how
to create and use a custom template see section [1.2 Some advice for the
labeleR functions].
**\*NOTE:** Backslashes (i.e. `\`) define special characters in
different ways. When editing a RMarkdown template (e.g. certificates)
only one bar is needed. However, when a text in R has to be passed to
Markdown and render after (i.e. templates starting with a `cat()`
function), double backslashes (`\\`) must be used!
- [Text size:]{.underline}\
Text size can be defined using functions as (e.g.) `{\Huge text }`
to make it "huge", or different default type sizes ([see
more](https://texblog.org/2012/08/29/changing-the-font-size-in-latex/)).
Alternatively, a specific font size can be specified using
`{\fontsize{30pt}{0pt}\selectfont text }` (in this case to set a
font size of 30).
- [Text emphasis (bold/italic/teletype):]{.underline} To make a text
bold, use `\bf{ text }`. To make a text italics, use
`\textit{ text }` or `\emph{ text }` . To make a text appear in code
appearance, use `\texttt{ text }`
- [Image size:]{.underline} When images are included in documents,
their size can be modified using
`\includegraphics[height=1.5cm]{lpic.png}` (in this case to reduce
it to 1.5 cm from the original 3 cm). QR codes can be also scaled
using (e.g.) `\qrcode[height=0.5in, version=5]`.
- [Font type:]{.underline} If a non-default font type has to be used
just for one parameter, for example, it should be specified in the
template as follows: `{\fontfamily{pcr}\selectfont text }`. Here,
what has to be specified is the "font code" ([see available codes
here](https://www.overleaf.com/learn/latex/Font_typefaces)); we have
used `pcr`, "courier"). Bear in mind that no spaces can be left
between the brackets and the code.
### Including italic or bold texts within a single text
This implementation should be used just to change text formats in only a
part of values stored in columns (variable parameters).
To do so, you must edit the cell value, specifying where the italics
text must start with `\\textit` (or `\\emph`, which allows to open
italics in a reular text, and vice-versa), and `\\end` where it ends;
and `\\textbf` followed by `\\end` for bold text. In case you want to
combine both, you will have to specify `\\end` twice.
For example, this could be helpful to include italics in a species name
which is included as part of a title; where just the species name should
be italicized.
```{r custom italics, eval=FALSE}
seminar.table <- data.frame(
"Name" = "Rubeus Hagrid",
"Date" = "01/01/1996",
"Title" = "Population dynamics of a species of giant spider
(\\textitAcromantula gigantea\\end) in Hogwart's Forbidden Forest",
"Comm.type" = "seminar",
"Affil" = "Hogwarts Keeper of Keys and Grounds")
create_participation_certificate(
data = seminar.table,
path = "labeleR_output",
filename = "participation_certificates",
language = "English",
name.column = "Name",
affiliation.column = "Affil",
comm.type.column = "Comm.type",
title.column = "Title",
date.column = "Date",
type = "online",
event = "seminar",
freetext = "organized by Hogwarts School of Magic and Wizardry",
signer = "A.P.W.B. Dumbledore",
signer.role = "School Headmaster",
rpic = system.file("rmarkdown/pictures/Hogwartslogo.png", package = "labeleR"),
lpic = system.file("rmarkdown/pictures/MinMagic.png", package = "labeleR"),
signature.pic = system.file("rmarkdown/pictures/dumbledore.png", package = "labeleR")
)
```
|  |
|--------------------------------------------------------|
## Send certificates automatically using create_certificate functions
Sending attendance or participation certificates one by one by hand can
be a real nightmare, so labeleR can do it for you (do not get scared, it
is really easy!). The only things you need are a gmail account and all
the recipient mail addresses stored in a column of your data frame.
The first thing labeleR needs is permission to send emails. Do not
worry, this will only be required the first time you do it! Function
`configure_email()` will drive you step by step through the whole
process, but if you prefer to do it manually, go to:
<https://myaccount.google.com/apppasswords> and create an app using your
gmail account.
**Warning!** Please bear in mind that the gmail account you use will be
the one sending the emails, and thus visible for all recipients.\
Once accessed, you have to create an app (the name will not be
visible!), and you will be given a password. Save both somewhere safe,
as you will be asked for them any time you use this feature.
Once you have your mailing application, you have to configure the
structure you want to use for the mailing distribution (i.e. subject,
body, and cc or bcc if you wish). To configure it, just run
`configure_email(user = "youruser@gmail.com", app.name = "yourapp")` ,
being *user* your gmail account previously used, and *app.name* the
application name you have already created. Remember to have your
password with you, as you will be asked for it.
```{r, eval=F}
myemail <- configure_email(user = "s.snape@gmail.com",
app.name = "e-owl",
subject = "Potions 1992-1993 Attendance",
body = "Dear student,
here you have your attendance certificate for this year.
Congratulations for having completed it, but remember keep studying for next year!",
cc = c("albus.dumbledore@hogwarts.co.uk",
"minerva.mcgonagall@hogwarts.co.uk"),
bcc = "cornelius.fudge@min.magic.co.uk"
)
```
**Great!** Now you can send all emails as soon as they are rendered.
Just remember to specify the column of your data frame storing each
recipient email address in `email.column` and the created configuration
object (here, myemail) in the `email.info` slot.\
Just for precaution, labeleR will ask if you are **sure** you want to
send them, but if you are, just click "Yes" and they will be sent as
soon as they are rendered!\
- *Amazing! This is just like magic! (G. Lockhart).*
Here an example of how the recipient will receive the mail:
|  |
|----------------------------|
```{r eval = F}
create_attendance_certificate(
data = attendance.table,
path = "labeleR_output",
filename = "Potions_grades",
language = "English" ,
name.column = "Names",
type = "class",
title = "Potions (year 1992-1993)",
date = "23/06/1993",
hours = "200",
freetext = "taught by Professor S. Snape",
signer = "S. Snape",
signer.role = "Potions Professor",
email.info = myemail,
email.column = students.mails
)
```
## Citation
```{r citation, eval=TRUE, comment=NA}
citation("labeleR")
```
## Funding
The development of this software has been funded by the European Union -
Next Generation EU, Fondo Europeo de Desarrollo Regional (FEDER) and
Consejería de Transformación Económica, Industria, Conocimiento y
Universidades of Junta de Andalucía (proyecto US-1381388 led by
Francisco Rodríguez Sánchez, Universidad de Sevilla).
## Code of Conduct
Please note that the labeleR project is released with a [Contributor Code of Conduct](https://ecologyr.github.io/labeleR/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.