Learn R Programming

ChocoLattes package

Felipe Campelo
Operations Research and Complex Systems Laboratory - ORCS Lab Universidade Federal de Minas Gerais Belo Horizonte, Brazil


R package for extracting and summarising information from the Lattes database of Brazilian Researchers.

This package currently exports four methods:

  • lattes_to_list(...) - extracts information from a Lattes CV xml file (or a list of xml files, or a folder full of xml files) and structures everything in a neat list vector, taking care of duplicates (using DOI and title for papers, and ISSN and title for books) and formatting author names. It currently extracts info on journal papers (accepted or published), conference papers, book chapters, books, PhD theses and MSc dissertations.
  • make_productions_page(...) - builds a neat HTML page with the productions of the researcher (or lab, or department), based on the list produced by lattes_to_list(...)
  • plot_chart produces a summary chart of productions, based on the list produced by lattes_to_list(...)
  • extract_qualis generates an Excel (or CSV) file containing the production summary of the researcher (or lab, or department), based on the list produced by lattes_to_list(...) and on a certain QUALIS extract

Example:

  1. Download example file (curriculo.xml) from here, and save it to your current working folder.

  2. Convert it to a Lattes list:

library(ChocoLattes) # <-- assuming it is installed, of course
lattes.list <- lattes_to_list(filenames = "curriculo.xml")
  1. Build a productions chart
a <- plot_chart(lattes.list = lattes.list, 
                chart.type  = "ggplot2")
print(a)

or a full productions page:

make_productions_page(lattes.list = lattes.list, 
                      chart.type  = "plotly", 
                      h1.title    = "Felipe Campelo", 
                      h2.title    = "UFMG, Brazil",
                      language    = "EN")

Have fun!!!
Felipe

Copy Link

Version

Install

install.packages('ChocoLattes')

Monthly Downloads

6

Version

0.1.0

License

GPL-2

Maintainer

Felipe Campelo

Last Published

April 29th, 2017

Functions in ChocoLattes (0.1.0)

get_advised_dissertations

Extract advised MSc dissertations
get_advised_theses

Extract advised PhD theses
get_authors

Extract author names
get_book_chapters

Extract published book chapters
plot_chart

Plot summary chart
print_accepted

Print accepted papers
capitalize_authors

Capitalize author names
capitalize_titles

Capitalize titles
print_conferences

Print conference papers
print_journal_papers

Print journal papers
get_journal_papers

Extract published journal papers
lattes_to_list

Convert a set of Lattes CV XML files to a list object
extract_qualis

Extract QUALIS information
get_accepted_papers

Extract accepted journal papers
make_name_surname

Put author names in "Name Surname" format
make_productions_page

Generate HTML page with productions list and summary chart
print_msc_theses

Print MSc theses
get_books

Extract published books
get_conference_papers

Extract published conference papers
print_phd_theses

Print PhD theses
print_book_chapters

Print book chapters
print_books

Print books
remove_duplicates

Function to remove duplicated entries
sort_papers

Sort publications by year