The goal of dhlabR is to provide access to National Library text data for quantitative analysis. It provides utility functions for requesting data from the dhlab api (api.nb.no/dhlab)
You can install the development version of dhlabR from GitHub with:
# install.packages("devtools")
::install_github("NationalLibraryOfNorway/dhlabR") devtools
This is a basic example which shows you how to solve a common problem:
library(dhlabR)
# Get corpus
= get_document_corpus(doctype="digibok", "author" = "Ibsen", limit=100) corpus