Skip to content

KTH-Library/kthcorpus

Repository files navigation

kthcorpus

Lifecycle: experimental R-CMD-check

The goal of kthcorpus is to provide some tools that can be used when working with DiVA data.

Installation

devtools::install_github("KTH-Library/kthcorpus", dependencies = TRUE)

Example

This is a basic example which shows you how to use some of these tools:

library(kthcorpus)

# download and cache KTH DiVA data
pubs <- kth_diva_pubs()
authors <- kth_diva_authors()
aliases <- kth_diva_aliases()
issues <- kth_diva_issues()

# run some checks
checks <- kth_diva_checks()

# see results
checks

Development

Press “Ctrl-Shift-L” to load function, which can then be run, for example:

mia <- 
  check_missing_kthid() 

# display results as interactive HTML table
mia %>% 
  DT::datatable(escape = FALSE)

The cache with downloaded data for publications and author data can be refreshed:

diva_refresh()

Adding checks

See the file at “R/checks.R” for some of the checks. Edit and add checks there.

Checks using Python can be used too, through reticulate, for example.

Running the API locally

To run the API locally, just open the file (located in inst/plumber/checks/plumber.R) and press play.

About

R package to support workflows related to the corpus of publications from KTH

Resources

License

AGPL-3.0, AGPL-3.0 licenses found

Licenses found

AGPL-3.0
LICENSE
AGPL-3.0
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 8