Publications by R on Pablo Bernabeu

WebVTT caption transcription app

31.12.2020

This open-source, R-based web application allows the conversion of video captions (subtitles) from the Web Video Text Tracks (WebVTT) Format into plain texts. For this purpose, users upload a WebVTT file with the extension .vtt or .txt (examples available here and here). Automatically, metadata such as timestamps are removed, and the text is form...

1605 sym

Parallelizing simr::powercurve() in R

23.07.2021

The powercurve function from the simr package in R (Green & MacLeod, 2016) can incur very long running times when the method used for the calculation of p values is Kenward-Roger or Satterthwaite (see Luke, 2017). Here I suggest three ways for cutting down this time. Where possible, use a high-performance (or high-end) computing cluster. This re...

3369 sym R (6187 sym/4 pcs) 2 img

A new function to plot convergence diagnostics from lme4::allFit()

20.10.2021

Linear mixed-effects models (LMM) offer a consistent way of performing regression and analysis of variance tests which allows accounting for non-independence in the data. Over the past decades, LMMs have subsumed most of the General Linear Model, with a stead increase in popularity (Meteyard & Davies, 2020). Since their conception, LMMs have pres...

7713 sym R (10426 sym/5 pcs) 2 img

Tackling knitting errors in R Markdown

13.11.2021

When knitting an R Markdown document after the first time, errors may sometimes appear. Three tips are recommended below. 1. Close PDF reader window When the document is knitted through the ‘Knit’ button, a PDF reader window opens to present the result. Closing this window can help resolve knitting errors. 2. Delete service files Every time...

1416 sym R (98 sym/1 pcs)

Walking the line between reproducibility and efficiency in R Markdown: Three methods

13.11.2021

As technology and research methods advance, the data sets tend to be larger and the methods more exhaustive. Consequently, the analyses take longer to run. This poses a challenge when the results are to be presented using R Markdown. One has to walk the line between reproducibility and efficiency. On the one hand, it is desirable to keep the R Ma...

1543 sym R (82 sym/3 pcs)

Avoiding knitting errors in (R) Markdown using knit-deleting-service-files()

17.12.2021

The function knit-deleting-service-files() is designed to avoid (R) Markdown knitting errors caused by service files from previous knittings (e.g., manuscript.tex, ZHJhZnQtYXBhLlJtZA==.Rmd, manuscript.synctex.gz). The function first suggests deleting potential service files in the directory. A response from the user is required in the console. Ne...

1340 sym 2 img